Class TypeReference<T>

java.lang.Object
is.codion.common.utilities.TypeReference<T>
Type Parameters:
T - the type represented by this type reference.

public abstract class TypeReference<T> extends Object
A basic TypeReference implementation.
  • Constructor Details

    • TypeReference

      protected TypeReference()
      Instantiates a new TypeReference
  • Method Details

    • type

      public final Type type()
      Returns:
      the type
    • rawType

      public final Class<T> rawType()
      Returns:
      the generic class type
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public final String toString()
      Overrides:
      toString in class Object