public enum NoObjectFactory extends Enum<NoObjectFactory> implements ObjectFactory
UnsupportedOperationException
.Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
Object |
create()
Always throws
UnsupportedOperationException . |
static NoObjectFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NoObjectFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NoObjectFactory INSTANCE
public static NoObjectFactory[] values()
for (NoObjectFactory c : NoObjectFactory.values()) System.out.println(c);
public static NoObjectFactory 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 Object create() throws UnsupportedOperationException
UnsupportedOperationException
.create
in interface ObjectFactory
UnsupportedOperationException
- alwaysCopyright © 2019. All rights reserved.