Package com.gpudb

Class TypeObjectMap.ClassFactory<T>

  • Type Parameters:
    T - the class that the factory creates instances of
    All Implemented Interfaces:
    TypeObjectMap.Factory<T>
    Enclosing class:
    TypeObjectMap<T>

    public static final class TypeObjectMap.ClassFactory<T>
    extends Object
    implements TypeObjectMap.Factory<T>
    A factory that uses reflection to create new instances of the specified class. The class must have a public, parameterless constructor.
    • Constructor Detail

      • ClassFactory

        public ClassFactory​(Class<?> objectClass)
        Creates a TypeObjectMap.ClassFactory for the specified class. The class must have a public, parameterless constructor.
        Parameters:
        objectClass - the class that the factory creates instances of