Class AbstractObjType<T extends Obj>

java.lang.Object
org.apache.polaris.persistence.nosql.api.obj.AbstractObjType<T>
All Implemented Interfaces:
ObjType
Direct Known Subclasses:
AbstractObjType.AbstractUncachedObjType

public abstract class AbstractObjType<T extends Obj> extends Object implements ObjType
  • Constructor Details

    • AbstractObjType

      protected AbstractObjType(String id, String name, Class<T> targetClass)
  • Method Details

    • id

      public String id()
      Description copied from interface: ObjType
      Must be unique among all registered object types.
      Specified by:
      id in interface ObjType
    • name

      public String name()
      Description copied from interface: ObjType
      Human-readable name.
      Specified by:
      name in interface ObjType
    • targetClass

      public Class<T> targetClass()
      Description copied from interface: ObjType
      The target class that objects of this type should be serialized from and deserialized to.
      Specified by:
      targetClass in interface ObjType
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object