示例#1
0
 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;
 }
示例#2
0
 public Builder setDistance(DistanceRange distanceRange) {
   ret.setDistanceRange(distanceRange);
   return this;
 }
示例#3
0
 public Builder(String id, Type t) {
   ret = new Entity(t);
   ret.setEntityID(id.toLowerCase());
   ret.setDistanceRange(DistanceRange.UNKNOWN);
 }