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