Class DataType

java.lang.Object
dev.frostlake.types.DataType
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArrayType, BinaryType, BooleanType, DateTimeType, FileType, GeographyType, GeometryType, MapType, NumericType, ObjectType, StringType, VariantType, VectorType

public abstract class DataType extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getCategory

      public TypeCategory getCategory()
    • parseValue

      public abstract Object parseValue(String value)
    • formatValue

      public abstract String formatValue(Object value)
    • isCompatible

      public abstract boolean isCompatible(DataType other)
    • getCommonType

      public abstract DataType getCommonType(DataType other)
    • getSize

      public abstract int getSize()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object