Class BinaryHandlerGenericEnum<T extends Enum<T>>
- java.lang.Object
-
- one.microstream.persistence.types.PersistenceTypeHandler.Abstract<Binary,T>
-
- one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract<T>
-
- one.microstream.persistence.binary.internal.AbstractBinaryHandlerReflective<T>
-
- one.microstream.persistence.binary.internal.BinaryHandlerGenericEnum<T>
-
- All Implemented Interfaces:
BinaryTypeHandler<T>
,PersistenceTypeDefinition
,PersistenceTypeDescription
,PersistenceTypeHandler<Binary,T>
,PersistenceTypeHandlerGeneric<Binary,T>
,PersistenceTypeHandlerReflective<Binary,T>
,PersistenceTypeIdentity
,PersistenceTypeIdOwner
,PersistenceTypeLink
public final class BinaryHandlerGenericEnum<T extends Enum<T>> extends AbstractBinaryHandlerReflective<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface one.microstream.persistence.binary.types.BinaryTypeHandler
BinaryTypeHandler.Abstract<T>
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
PersistenceTypeDefinition.Default
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
PersistenceTypeDescription.Identity
-
Nested classes/interfaces inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
PersistenceTypeHandler.Abstract<M,T>
-
-
Constructor Summary
Constructors Constructor Description BinaryHandlerGenericEnum()
-
Method Summary
-
Methods inherited from class one.microstream.persistence.binary.internal.AbstractBinaryHandlerReflective
complete, hasInstanceReferences, hasPersistedReferences, hasPersistedVariableLength, hasVaryingPersistedLengthInstances, instanceFields, instanceMembers, instancePrimitiveFields, instanceReferenceFields, isPrimitiveType, isSwitchedByteOrder, iterateInstanceReferences, iterateLoadableReferences, iterateMemberTypes, membersInDeclaredOrder, membersPersistedLengthMaximum, membersPersistedLengthMinimum, settingMembers, store, storingMembers
-
Methods inherited from class one.microstream.persistence.binary.types.BinaryTypeHandler.Abstract
declaredField, declaredField
-
Methods inherited from class one.microstream.persistence.types.PersistenceTypeHandler.Abstract
declaredField, declaredFields, initialize, toString, type, typeId, typeName, validateAndImmure
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDefinition
runtimeTypeName, toRuntimeTypeIdentifier, typeId, typeName
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeDescription
instancePrimitiveMembers, instanceReferenceMembers, toTypeIdentifier
-
Methods inherited from interface one.microstream.persistence.types.PersistenceTypeHandler
guaranteeSpecificInstanceViablity, guaranteeSubTypeInstanceViablity, initialize, isSpecificInstanceViable, isSubTypeInstanceViable, type
-
-
-
-
Method Detail
-
isJavaLangEnumMember
public static boolean isJavaLangEnumMember(PersistenceTypeDefinitionMember member)
-
isJavaLangEnumName
public static boolean isJavaLangEnumName(PersistenceTypeDefinitionMember member)
-
isJavaLangEnumOrdinal
public static boolean isJavaLangEnumOrdinal(PersistenceTypeDefinitionMember member)
-
calculateBinaryOffsetOrdinal
public static long calculateBinaryOffsetOrdinal(PersistenceTypeDefinition typeDefinition)
-
calculateBinaryOffsetName
public static long calculateBinaryOffsetName(PersistenceTypeDefinition typeDefinition)
-
calculateBinaryOffset
public static long calculateBinaryOffset(XGettingCollection<? extends PersistenceTypeDefinitionMember> fields, Predicate<? super PersistenceTypeDefinitionMember> fieldSelector)
-
deriveEnumConstantMembers
public static XImmutableEnum<PersistenceTypeDefinitionMemberEnumConstant> deriveEnumConstantMembers(Class<?> enumType)
-
New
public static <T extends Enum<T>> BinaryHandlerGenericEnum<T> New(Class<T> type, String typeName, XGettingEnum<Field> allFields, PersistenceFieldLengthResolver lengthResolver, PersistenceEagerStoringFieldEvaluator eagerStoringFieldEvaluator, boolean switchByteOrder)
-
enumConstants
public XImmutableEnum<PersistenceTypeDefinitionMemberEnumConstant> enumConstants()
-
allMembers
public final XGettingEnum<? extends PersistenceTypeDefinitionMember> allMembers()
- Specified by:
allMembers
in interfacePersistenceTypeDefinition
- Specified by:
allMembers
in interfacePersistenceTypeDescription
- Specified by:
allMembers
in interfacePersistenceTypeHandler<Binary,T extends Enum<T>>
- Overrides:
allMembers
in classAbstractBinaryHandlerReflective<T extends Enum<T>>
-
collectEnumConstants
public Object[] collectEnumConstants()
-
create
public final T create(Binary bytes, PersistenceObjectIdResolver idResolver)
-
getPersistedEnumOrdinal
public int getPersistedEnumOrdinal(Binary bytes)
-
getName
public String getName(Binary bytes, PersistenceObjectIdResolver idResolver)
-
update
public void update(Binary bytes, T instance, PersistenceObjectIdResolver idResolver)
-
-