Class PrimitiveGenerator
java.lang.Object
com.comphenix.protocol.reflect.instances.PrimitiveGenerator
- All Implemented Interfaces:
InstanceProvider
Provides constructors for primitive java types and wrappers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PrimitiveGeneratorShared instance of this generator.static final StringDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate an instance given a type, if possible.Deprecated.
-
Field Details
-
STRING_DEFAULT
Deprecated.Default value for Strings.- See Also:
-
INSTANCE
Shared instance of this generator.
-
-
Constructor Details
-
PrimitiveGenerator
public PrimitiveGenerator() -
PrimitiveGenerator
Deprecated.
-
-
Method Details
-
getStringDefault
Deprecated.Retrieve the string default.- Returns:
- Default instance of a string.
-
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.
-