Package dev.twilite.game.stream
Class GrandExchangeOfferView
- All Implemented Interfaces:
Iterable<GrandExchangeOffer>
Lazy view over Grand Exchange offers.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an offer view backed by a stream supplier. -
Method Summary
Modifier and TypeMethodDescriptionamount(int minAmount) Filters offers by minimum amount.amount(int minInclusive, int maxInclusive) Filters offers by inclusive amount range.filter(Predicate<GrandExchangeOffer> filter) Returns a new view with an additional filter.id(int... ids) Filters offers by item id.nameContains(String... names) Filters offers whose standardized item name contains any provided text.Filters offers by exact standardized item name.Filters offers by standardized item name predicate.not()Returns a new view with the most recent filter negated.or(Predicate<GrandExchangeOffer> filter) Returns a new view with the supplied filter OR'ed with the most recent filter.slot(int... slots) Filters offers by slot.state(GrandExchangeOffer.State... states) Filters offers by state.type(GrandExchangeOffer.Type... types) Filters offers by type.Methods inherited from class dev.twilite.game.stream.View
count, exists, first, iterator, map, mapToInt, stream, toListMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
GrandExchangeOfferView
Creates an offer view backed by a stream supplier.
-
-
Method Details
-
filter
Description copied from class:ViewReturns a new view with an additional filter.- Overrides:
filterin classView<GrandExchangeOffer>
-
not
Description copied from class:ViewReturns a new view with the most recent filter negated.- Overrides:
notin classView<GrandExchangeOffer>
-
or
Description copied from class:ViewReturns a new view with the supplied filter OR'ed with the most recent filter.- Overrides:
orin classView<GrandExchangeOffer>
-
slot
Filters offers by slot. -
id
Filters offers by item id. -
named
Filters offers by exact standardized item name. -
nameContains
Filters offers whose standardized item name contains any provided text. -
type
Filters offers by type. -
state
Filters offers by state. -
amount
Filters offers by minimum amount. -
amount
Filters offers by inclusive amount range. -
named
Filters offers by standardized item name predicate.
-