public Builder addProperties(JSONObject properties) { if (properties.keySet().contains(JsonStrings.PROPERTIES) && properties.keySet().size() == 1 && (properties.get(JsonStrings.PROPERTIES) instanceof JSONObject)) ret.setProperties(properties); else Log.e(TAG, "Properties not valid"); return this; }
public Builder setDistance(DistanceRange distanceRange) { ret.setDistanceRange(distanceRange); return this; }
public Builder(String id, Type t) { ret = new Entity(t); ret.setEntityID(id.toLowerCase()); ret.setDistanceRange(DistanceRange.UNKNOWN); }