public enum Pop extends Enum<Pop>
| Enum Constant and Description |
|---|
all
Get all the items and return them as a list
|
first
The first item in an ordered collection (i.e.
|
last
The last item in an ordered collection (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
static Pop |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pop[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pop first
collection[0])public static final Pop last
collection[collection.size()-1])public static final Pop all
public static Pop[] values()
for (Pop c : Pop.values()) System.out.println(c);
public static Pop 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 nullCopyright © 2013–2016 Apache Software Foundation. All rights reserved.