Class OptionalOf<V>

  • Type Parameters:
    V - The element class of the list.
    All Implemented Interfaces:
    java.lang.reflect.ParameterizedType, java.lang.reflect.Type

    public class OptionalOf<V>
    extends ParameterizedOf<java.util.Optional<V>>
    OptionalOf stores the generic parameter class to evade type erasure during deserialization.
    • Constructor Summary

      Constructors 
      Constructor Description
      OptionalOf​(java.lang.Class<V> valueClass)  
    • 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

      • OptionalOf

        public OptionalOf​(java.lang.Class<V> valueClass)