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