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 standardMap
implementations.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ConcurrentHashMap
ConcurrentMap
ConcurrentNavigableMap
ConcurrentSkipListMap
HashMap
Hashtable
IdentityHashMap
LinkedHashMap
Map
NavigableMap
Properties
SortedMap
TreeMap
WeakHashMap
-
Field Summary
Fields Modifier and Type Field Description java.lang.Class<?>
typeClass
-
Constructor Summary
Constructors Modifier Constructor Description private
MessageFactories(java.lang.Class<?> typeClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
accept(java.lang.String name)
Check whether the specific class name can be accepted by factory.static MapSchema.MessageFactories
getFactory(java.lang.Class<? extends java.util.Map<?,?>> mapType)
Returns the message factory for the standard jdkMap
implementations.static MapSchema.MessageFactories
getFactory(java.lang.String name)
Returns the message factory for the standard jdkMap
implementations.java.lang.Class<?>
typeClass()
The type to instantiate.static MapSchema.MessageFactories
valueOf(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.MessageFactory
The type to instantiate.- Specified by:
typeClass
in interfaceMapSchema.MessageFactory
-
getFactory
public static MapSchema.MessageFactories getFactory(java.lang.Class<? extends java.util.Map<?,?>> mapType)
Returns the message factory for the standard jdkMap
implementations.
-
getFactory
public static MapSchema.MessageFactories getFactory(java.lang.String name)
Returns the message factory for the standard jdkMap
implementations.
-
accept
public static boolean accept(java.lang.String name)
Check whether the specific class name can be accepted by factory.
-
-