public enum StringIdAndVersionFactory extends Enum<StringIdAndVersionFactory> implements IdAndVersionFactory
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
StringIdAndVersion |
create(Object id,
long version) |
StringIdAndVersion |
readFromStream(ObjectInputStream inputStream) |
static StringIdAndVersionFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StringIdAndVersionFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StringIdAndVersionFactory INSTANCE
public static StringIdAndVersionFactory[] values()
for (StringIdAndVersionFactory c : StringIdAndVersionFactory.values()) System.out.println(c);
public static StringIdAndVersionFactory 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 StringIdAndVersion create(Object id, long version)
create in interface IdAndVersionFactorypublic StringIdAndVersion readFromStream(ObjectInputStream inputStream) throws IOException
readFromStream in interface IdAndVersionFactoryIOExceptionCopyright © 2011-2015 Molindo GmbH. All Rights Reserved.