public enum LongIdAndVersionFactory extends Enum<LongIdAndVersionFactory> implements IdAndVersionFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
LongIdAndVersion |
create(Object id,
long version) |
LongIdAndVersion |
readFromStream(ObjectInputStream inputStream) |
static LongIdAndVersionFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LongIdAndVersionFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LongIdAndVersionFactory INSTANCE
public static LongIdAndVersionFactory[] values()
for (LongIdAndVersionFactory c : LongIdAndVersionFactory.values()) System.out.println(c);
public static LongIdAndVersionFactory valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic LongIdAndVersion create(Object id, long version)
create in interface IdAndVersionFactorypublic LongIdAndVersion readFromStream(ObjectInputStream inputStream) throws IOException
readFromStream in interface IdAndVersionFactoryIOExceptionCopyright © 2011-2015 Molindo GmbH. All Rights Reserved.