Class TypeT<T>

java.lang.Object
io.activej.types.TypeT<T>
Type Parameters:
T - actual type

public abstract class TypeT<T> extends Object
A type token for defining complex types (annotated, parameterized)

Usage example:

Type listOfStringsType = new TypeT<List<String>>(){}.getType()

  • Constructor Details

    • TypeT

      protected TypeT()
      Creates a new type token. A type argument TypeT must be specified. A typical usage is:

      TypeT<List<Integer>> integerListTypeT = new TypeT<List<Integer>>(){};

      Throws:
      AssertionError - if a TypeT is created with a raw type
  • Method Details