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