com.dyuproject.protostuff
Enum MapSchema.MessageFactories

java.lang.Object
  extended by java.lang.Enum<MapSchema.MessageFactories>
      extended by com.dyuproject.protostuff.MapSchema.MessageFactories
All Implemented Interfaces:
MapSchema.MessageFactory, java.io.Serializable, java.lang.Comparable<MapSchema.MessageFactories>
Enclosing class:
MapSchema<K,V>

public static enum MapSchema.MessageFactories
extends java.lang.Enum<MapSchema.MessageFactories>
implements MapSchema.MessageFactory

A message factory for standard Map implementations.


Enum Constant Summary
ConcurrentHashMap
           
ConcurrentMap
           
ConcurrentNavigableMap
           
ConcurrentSkipListMap
           
HashMap
           
Hashtable
           
IdentityHashMap
           
LinkedHashMap
           
Map
           
NavigableMap
           
SortedMap
           
TreeMap
           
WeakHashMap
           
 
Field Summary
 java.lang.Class<?> typeClass
           
 
Method Summary
static MapSchema.MessageFactories getFactory(java.lang.Class<? extends java.util.Map<?,?>> mapType)
          Returns the message factory for the standard jdk Map implementations.
static MapSchema.MessageFactories getFactory(java.lang.String name)
          Returns the message factory for the standard jdk Map 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 class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.dyuproject.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
Field Detail

typeClass

public final java.lang.Class<?> typeClass
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 name
java.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 interface MapSchema.MessageFactory

getFactory

public static MapSchema.MessageFactories getFactory(java.lang.Class<? extends java.util.Map<?,?>> mapType)
Returns the message factory for the standard jdk Map implementations.


getFactory

public static MapSchema.MessageFactories getFactory(java.lang.String name)
Returns the message factory for the standard jdk Map implementations.



Copyright © 2009-2012. All Rights Reserved.