public final class Category
extends java.lang.Object
GrandExchange
.Modifier and Type | Field and Description |
---|---|
static int |
ITEMS_PER_PAGE
The amount of items on each
Category page. |
Constructor and Description |
---|
Category(java.lang.Object[] types,
SearchResult... alpha)
Creates a new
Category |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
ImmutableList<SearchResult> |
getAlpha()
Gets an
ImmutableList of the SearchResult s within this category. |
java.util.Optional<SearchResult> |
getResult(int index)
Gets a
SearchResult from its index in the alpha array. |
ImmutableList<java.lang.Object> |
getTypes()
Gets an
ImmutableList of the types of item within this category. |
int |
hashCode() |
java.lang.String |
toString() |
public static final int ITEMS_PER_PAGE
Category
page.public Category(java.lang.Object[] types, SearchResult... alpha)
Category
types
- The types of item.alpha
- The search results.public ImmutableList<java.lang.Object> getTypes()
ImmutableList
of the types of item within this category.ImmutableList
of the types of item within this category.public ImmutableList<SearchResult> getAlpha()
ImmutableList
of the SearchResult
s within this category.ImmutableList
of the SearchResult
s within this categorypublic java.util.Optional<SearchResult> getResult(int index)
SearchResult
from its index in the alpha array.index
- The index.Optional
containing the SearchResult
, or Optional.empty()
if no SearchResult
was found at this index.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object