| Enum Constant and Description |
|---|
INST
Inst singleton.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(java.lang.Class<T> clazz)
Get t.
|
void |
single(java.lang.Class<?> clazz,
java.lang.Object o)
Single.
|
static Singleton |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Singleton[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Singleton INST
public static Singleton[] values()
for (Singleton c : Singleton.values()) System.out.println(c);
public static Singleton valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic void single(java.lang.Class<?> clazz,
java.lang.Object o)
clazz - the clazzo - the opublic <T> T get(java.lang.Class<T> clazz)
T - the type parameterclazz - the clazzCopyright © 2024 The Apache Software Foundation. All rights reserved.