Class CollectionGenerator
java.lang.Object
com.comphenix.protocol.reflect.instances.CollectionGenerator
- All Implemented Interfaces:
InstanceProvider
Provides simple constructors for collection interfaces.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CollectionGeneratorShared instance of this generator. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
INSTANCE
Shared instance of this generator.
-
-
Constructor Details
-
CollectionGenerator
public CollectionGenerator()
-
-
Method Details
-
create
Description copied from interface:InstanceProviderCreate an instance given a type, if possible.- Specified by:
createin interfaceInstanceProvider- Parameters:
type- - type to create.- Returns:
- The instance, or NULL if the type cannot be created.
-