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