Package io.protostuff
Enum CollectionSchema.MessageFactories
- java.lang.Object
-
- java.lang.Enum<CollectionSchema.MessageFactories>
-
- io.protostuff.CollectionSchema.MessageFactories
-
- All Implemented Interfaces:
CollectionSchema.MessageFactory
,java.io.Serializable
,java.lang.Comparable<CollectionSchema.MessageFactories>
- Enclosing class:
- CollectionSchema<V>
public static enum CollectionSchema.MessageFactories extends java.lang.Enum<CollectionSchema.MessageFactories> implements CollectionSchema.MessageFactory
-
-
Enum Constant Summary
-
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 CollectionSchema.MessageFactories
getFactory(java.lang.Class<? extends java.util.Collection<?>> clazz)
Returns the message factory for the standard jdkCollection
implementations.static CollectionSchema.MessageFactories
getFactory(java.lang.String name)
Returns the message factory for the standard jdkCollection
implementations.java.lang.Class<?>
typeClass()
The type to instantiate.static CollectionSchema.MessageFactories
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CollectionSchema.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.CollectionSchema.MessageFactory
newMessage
-
-
-
-
Enum Constant Detail
-
Collection
public static final CollectionSchema.MessageFactories Collection
-
List
public static final CollectionSchema.MessageFactories List
-
ArrayList
public static final CollectionSchema.MessageFactories ArrayList
-
LinkedList
public static final CollectionSchema.MessageFactories LinkedList
-
CopyOnWriteArrayList
public static final CollectionSchema.MessageFactories CopyOnWriteArrayList
-
Stack
public static final CollectionSchema.MessageFactories Stack
-
Vector
public static final CollectionSchema.MessageFactories Vector
-
Set
public static final CollectionSchema.MessageFactories Set
-
HashSet
public static final CollectionSchema.MessageFactories HashSet
-
LinkedHashSet
public static final CollectionSchema.MessageFactories LinkedHashSet
-
SortedSet
public static final CollectionSchema.MessageFactories SortedSet
-
NavigableSet
public static final CollectionSchema.MessageFactories NavigableSet
-
TreeSet
public static final CollectionSchema.MessageFactories TreeSet
-
ConcurrentSkipListSet
public static final CollectionSchema.MessageFactories ConcurrentSkipListSet
-
CopyOnWriteArraySet
public static final CollectionSchema.MessageFactories CopyOnWriteArraySet
-
Queue
public static final CollectionSchema.MessageFactories Queue
-
BlockingQueue
public static final CollectionSchema.MessageFactories BlockingQueue
-
LinkedBlockingQueue
public static final CollectionSchema.MessageFactories LinkedBlockingQueue
-
Deque
public static final CollectionSchema.MessageFactories Deque
-
BlockingDeque
public static final CollectionSchema.MessageFactories BlockingDeque
-
LinkedBlockingDeque
public static final CollectionSchema.MessageFactories LinkedBlockingDeque
-
ArrayBlockingQueue
public static final CollectionSchema.MessageFactories ArrayBlockingQueue
-
ArrayDeque
public static final CollectionSchema.MessageFactories ArrayDeque
-
ConcurrentLinkedQueue
public static final CollectionSchema.MessageFactories ConcurrentLinkedQueue
-
ConcurrentLinkedDeque
public static final CollectionSchema.MessageFactories ConcurrentLinkedDeque
-
PriorityBlockingQueue
public static final CollectionSchema.MessageFactories PriorityBlockingQueue
-
PriorityQueue
public static final CollectionSchema.MessageFactories PriorityQueue
-
-
Method Detail
-
values
public static CollectionSchema.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 (CollectionSchema.MessageFactories c : CollectionSchema.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 CollectionSchema.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:CollectionSchema.MessageFactory
The type to instantiate.- Specified by:
typeClass
in interfaceCollectionSchema.MessageFactory
-
getFactory
public static CollectionSchema.MessageFactories getFactory(java.lang.Class<? extends java.util.Collection<?>> clazz)
Returns the message factory for the standard jdkCollection
implementations.
-
getFactory
public static CollectionSchema.MessageFactories getFactory(java.lang.String name)
Returns the message factory for the standard jdkCollection
implementations.
-
accept
public static boolean accept(java.lang.String name)
Check whether the specific class name can be accepted by factory.
-
-