enum FlyweightType extends java.lang.Enum<FlyweightType>
Enum Constant and Description |
---|
BIGDECIMAL
java.math.BigDecimal
|
BIGINTEGER
java.math.BigInteger
|
BOOLEAN
java.lang.Boolean
|
BYTE
java.lang.Byte
|
CHARACTER
java.lang.Character
|
CLASS
java.lang.Class
|
CODINGERRORACTION
java.nio.charset.CodingErrorAction
|
ENUM
java.lang.Enum
|
INTEGER
java.lang.Integer
|
LOCALE
java.lang.Locale
|
LOGGER
java.util.Logger
|
LONG
java.lang.Long
|
MATHCONTEXT
java.math.MathContext
|
MISC
misc comparisons that can not rely on the object's class.
|
PROXY
java.net.Proxy
|
SHORT
java.lang.Short
|
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<?> |
clazz |
private static java.util.Set<java.util.Locale> |
GLOBAL_LOCALES |
private static java.util.Map<java.lang.Class<?>,FlyweightType> |
TYPE_MAPPINGS |
Modifier and Type | Method and Description |
---|---|
(package private) static FlyweightType |
getFlyweightType(java.lang.Class<?> aClazz)
Will return the Flyweight enum instance for the flyweight Class, or null if type isn't flyweight
|
(package private) abstract boolean |
isShared(java.lang.Object obj)
Whether this is a shared object
|
static FlyweightType |
valueOf(java.lang.String name)
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.
|
public static final FlyweightType ENUM
public static final FlyweightType CLASS
public static final FlyweightType BOOLEAN
public static final FlyweightType INTEGER
public static final FlyweightType SHORT
public static final FlyweightType BYTE
public static final FlyweightType LONG
public static final FlyweightType BIGINTEGER
public static final FlyweightType BIGDECIMAL
public static final FlyweightType MATHCONTEXT
public static final FlyweightType CHARACTER
public static final FlyweightType LOCALE
public static final FlyweightType LOGGER
public static final FlyweightType PROXY
public static final FlyweightType CODINGERRORACTION
public static final FlyweightType MISC
private static final java.util.Map<java.lang.Class<?>,FlyweightType> TYPE_MAPPINGS
private static final java.util.Set<java.util.Locale> GLOBAL_LOCALES
private final java.lang.Class<?> clazz
public static FlyweightType[] values()
for (FlyweightType c : FlyweightType.values()) System.out.println(c);
public static FlyweightType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullabstract boolean isShared(java.lang.Object obj)
obj
- the object to check forstatic FlyweightType getFlyweightType(java.lang.Class<?> aClazz)
aClazz
- the class we need the FlyweightType instance for