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