public enum PaginationLink extends Enum<PaginationLink>
Modifier and Type | Method and Description |
---|---|
String |
getBodyName() |
String |
getHeaderName() |
abstract OptionalInt |
getPage(Pagination<?> page)
Get the page number if the specified page exists relative to the current page.
|
static PaginationLink |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PaginationLink[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PaginationLink FIRST
public static final PaginationLink LAST
public static final PaginationLink NEXT
public static final PaginationLink PREVIOUS
public static PaginationLink[] values()
for (PaginationLink c : PaginationLink.values()) System.out.println(c);
public static PaginationLink 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 String getHeaderName()
public String getBodyName()
public abstract OptionalInt getPage(Pagination<?> page)
page
- Current page to evaluateCopyright © 2016–2018 Yahoo! Inc.. All rights reserved.