static enum Weighers.SingletonWeigher extends Enum<Weighers.SingletonWeigher> implements Weigher<Object>
| Enum Constant and Description |
|---|
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
static Weighers.SingletonWeigher |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Weighers.SingletonWeigher[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
int |
weightOf(Object value)
Measures an object's weight to determine how many units of capacity that
the value consumes.
|
public static final Weighers.SingletonWeigher INSTANCE
public static Weighers.SingletonWeigher[] values()
for (Weighers.SingletonWeigher c : Weighers.SingletonWeigher.values()) System.out.println(c);
public static Weighers.SingletonWeigher 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 int weightOf(Object value)
WeigherCopyright © 2010-2020 Toolsverse. All Rights Reserved.