data) {
+ return new Hstore(data);
+ }
+
+ /**
+ * Create a new {@link Hstore} instance from map data input.
+ *
+ * This is the same as {@link #valueOf(Map)}, but it can be static imported.
+ */
+ @NotNull
+ public static final Hstore hstore(Map data) {
+ return new Hstore(data);
+ }
+
+ @Override
+ public int hashCode() {
+ return data.hashCode();
+ }
+
+ @Override
+ public boolean equals(Object obj) {
+ if (this == obj)
+ return true;
+ if (obj instanceof Hstore)
+ return data.equals(((Hstore) obj).data);
+ return false;
+ }
+
+ @Override
+ public String toString() {
+ return String.valueOf(data);
+ }
+}