Package io.protostuff
Enum MapSchema.MessageFactories
- java.lang.Object
-
- java.lang.Enum<MapSchema.MessageFactories>
-
- io.protostuff.MapSchema.MessageFactories
-
- All Implemented Interfaces:
MapSchema.MessageFactory,java.io.Serializable,java.lang.Comparable<MapSchema.MessageFactories>
public static enum MapSchema.MessageFactories extends java.lang.Enum<MapSchema.MessageFactories> implements MapSchema.MessageFactory
A message factory for standardMapimplementations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ConcurrentHashMapConcurrentMapConcurrentNavigableMapConcurrentSkipListMapHashMapHashtableIdentityHashMapLinkedHashMapMapNavigableMapPropertiesSortedMapTreeMapWeakHashMap
-
Field Summary
Fields Modifier and Type Field Description java.lang.Class<?>typeClass
-
Constructor Summary
Constructors Modifier Constructor Description privateMessageFactories(java.lang.Class<?> typeClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccept(java.lang.String name)Check whether the specific class name can be accepted by factory.static MapSchema.MessageFactoriesgetFactory(java.lang.Class<? extends java.util.Map<?,?>> mapType)Returns the message factory for the standard jdkMapimplementations.static MapSchema.MessageFactoriesgetFactory(java.lang.String name)Returns the message factory for the standard jdkMapimplementations.java.lang.Class<?>typeClass()The type to instantiate.static MapSchema.MessageFactoriesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MapSchema.MessageFactories[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface io.protostuff.MapSchema.MessageFactory
newMessage
-
-
-
-
Enum Constant Detail
-
Map
public static final MapSchema.MessageFactories Map
-
SortedMap
public static final MapSchema.MessageFactories SortedMap
-
NavigableMap
public static final MapSchema.MessageFactories NavigableMap
-
HashMap
public static final MapSchema.MessageFactories HashMap
-
LinkedHashMap
public static final MapSchema.MessageFactories LinkedHashMap
-
TreeMap
public static final MapSchema.MessageFactories TreeMap
-
WeakHashMap
public static final MapSchema.MessageFactories WeakHashMap
-
IdentityHashMap
public static final MapSchema.MessageFactories IdentityHashMap
-
Hashtable
public static final MapSchema.MessageFactories Hashtable
-
ConcurrentMap
public static final MapSchema.MessageFactories ConcurrentMap
-
ConcurrentHashMap
public static final MapSchema.MessageFactories ConcurrentHashMap
-
ConcurrentNavigableMap
public static final MapSchema.MessageFactories ConcurrentNavigableMap
-
ConcurrentSkipListMap
public static final MapSchema.MessageFactories ConcurrentSkipListMap
-
Properties
public static final MapSchema.MessageFactories Properties
-
-
Method Detail
-
values
public static MapSchema.MessageFactories[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MapSchema.MessageFactories c : MapSchema.MessageFactories.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MapSchema.MessageFactories valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
typeClass
public java.lang.Class<?> typeClass()
Description copied from interface:MapSchema.MessageFactoryThe type to instantiate.- Specified by:
typeClassin interfaceMapSchema.MessageFactory
-
getFactory
public static MapSchema.MessageFactories getFactory(java.lang.Class<? extends java.util.Map<?,?>> mapType)
Returns the message factory for the standard jdkMapimplementations.
-
getFactory
public static MapSchema.MessageFactories getFactory(java.lang.String name)
Returns the message factory for the standard jdkMapimplementations.
-
accept
public static boolean accept(java.lang.String name)
Check whether the specific class name can be accepted by factory.
-
-