Class MultiValueMap.ReflectionFactory<T extends java.util.Collection<?>>

  • All Implemented Interfaces:
    java.io.Serializable, Factory<T>
    Enclosing class:
    MultiValueMap<K,​V>

    private static class MultiValueMap.ReflectionFactory<T extends java.util.Collection<?>>
    extends java.lang.Object
    implements Factory<T>, java.io.Serializable
    Inner class that provides a simple reflection factory.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<T> clazz  
      private static long serialVersionUID
      Serialization version
    • Constructor Summary

      Constructors 
      Constructor Description
      ReflectionFactory​(java.lang.Class<T> clazz)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T create()
      Create a new object.
      private void readObject​(java.io.ObjectInputStream is)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        Serialization version
        See Also:
        Constant Field Values
      • clazz

        private final java.lang.Class<T extends java.util.Collection<?>> clazz
    • Constructor Detail

      • ReflectionFactory

        public ReflectionFactory​(java.lang.Class<T> clazz)
    • Method Detail

      • create

        public T create()
        Description copied from interface: Factory
        Create a new object.
        Specified by:
        create in interface Factory<T extends java.util.Collection<?>>
        Returns:
        a new object
      • readObject

        private void readObject​(java.io.ObjectInputStream is)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
        Throws:
        java.io.IOException
        java.lang.ClassNotFoundException