Ejemplo n.º 1
0
  public Map<String, Object> serialize() {
    Map<String, Object> serialize = new HashMap<>();

    serialize.put("max_corner", ConfigUtil.serializeLocation(maxCorner));
    serialize.put("min_corner", ConfigUtil.serializeLocation(minCorner));

    return serialize;
  }
Ejemplo n.º 2
0
 public Region(Map<String, Object> deserialize) {
   this(
       ConfigUtil.deserializeLocation(deserialize.get("max_corner")),
       ConfigUtil.deserializeLocation("min_corner"));
 }