Class ListOf<E>

  • Type Parameters:
    E - The type of elements in the list.
    All Implemented Interfaces:
    java.lang.reflect.ParameterizedType, java.lang.reflect.Type

    public final class ListOf<E>
    extends ParameterizedOf<java.util.List<E>>
    Represents a List with a specified element type, allowing for retention of the generic type E during deserialization by circumventing type erasure.
    • Constructor Summary

      Constructors 
      Constructor Description
      ListOf​(java.lang.Class<E> elementClass)
      Constructs a ListOf instance for the specified element type.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.reflect.Type

        getTypeName
    • Constructor Detail

      • ListOf

        public ListOf​(java.lang.Class<E> elementClass)
        Constructs a ListOf instance for the specified element type.
        Parameters:
        elementClass - The class of the elements contained in the list.