6 package com.vesoft.nebula.client.graph.data;
8 import com.vesoft.nebula.Geography;
9 import java.util.Objects;
12 private final Geography geography;
15 this.geography = geography;
31 public boolean equals(Object o) {
35 if (o ==
null || getClass() != o.getClass()) {
39 switch (geography.getSetField()) {
41 return getPointWrapper().equals(that.getPointWrapper());
43 return getLineStringWrapper().equals(that.getLineStringWrapper());
45 return getPolygonWrapper().equals(that.getPolygonWrapper());
52 public String toString() {
53 switch (geography.getSetField()) {
55 return getPointWrapper().toString();
57 return getLineStringWrapper().toString();
59 return getPolygonWrapper().toString();
66 public int hashCode() {
67 return Objects.hash(geography);