Package org.ehcache.sizeof
Enum FlyweightType
- All Implemented Interfaces:
Serializable
,Comparable<FlyweightType>
,java.lang.constant.Constable
Enum with all the flyweight types that we check for sizeOf measurements
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionjava.math.BigDecimaljava.math.BigIntegerjava.lang.Booleanjava.lang.Bytejava.lang.Characterjava.lang.Classjava.nio.charset.CodingErrorActionjavax.xml.datatype.DatatypeConstants.Fieldjava.lang.Enumjava.lang.Integerjava.lang.Localejava.util.Loggerjava.lang.Longjava.math.MathContextmisc comparisons that can not rely on the object's class.java.net.Proxyjavax.xml.namespace.QNamejava.lang.Short -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Class
<?> private static final Map
<Class<?>, FlyweightType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static FlyweightType
getFlyweightType
(Class<?> aClazz) Will return the Flyweight enum instance for the flyweight Class, or null if type isn't flyweight(package private) abstract boolean
Whether this is a shared objectstatic FlyweightType
Returns the enum constant of this type with the specified name.static FlyweightType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ENUM
java.lang.Enum -
CLASS
java.lang.Class -
BOOLEAN
java.lang.Boolean -
INTEGER
java.lang.Integer -
SHORT
java.lang.Short -
BYTE
java.lang.Byte -
LONG
java.lang.Long -
BIGINTEGER
java.math.BigInteger -
BIGDECIMAL
java.math.BigDecimal -
MATHCONTEXT
java.math.MathContext -
CHARACTER
java.lang.Character -
LOCALE
java.lang.Locale -
LOGGER
java.util.Logger -
PROXY
java.net.Proxy -
CODINGERRORACTION
java.nio.charset.CodingErrorAction -
DATATYPECONSTANTS_FIELD
javax.xml.datatype.DatatypeConstants.Field -
QNAME
javax.xml.namespace.QName -
MISC
misc comparisons that can not rely on the object's class.
-
-
Field Details
-
TYPE_MAPPINGS
-
GLOBAL_LOCALES
-
clazz
-
-
Constructor Details
-
FlyweightType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getFlyweightType
Will return the Flyweight enum instance for the flyweight Class, or null if type isn't flyweight- Parameters:
aClazz
- the class we need the FlyweightType instance for- Returns:
- the FlyweightType, or null
-