Class BankQuery
- java.lang.Object
-
- com.kraken.api.core.AbstractQuery<BankEntity,BankQuery,BankItemWidget>
-
- com.kraken.api.query.container.bank.BankQuery
-
public class BankQuery extends AbstractQuery<BankEntity,BankQuery,BankItemWidget>
-
-
Field Summary
-
Fields inherited from class com.kraken.api.core.AbstractQuery
ctx
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisOpen()Determines whether the bank interface is currently open.protected java.util.function.Supplier<java.util.stream.Stream<BankEntity>>source()BankQuerywithId(int id)Filters for items in the bank which have a specified item id.
-
-
-
Constructor Detail
-
BankQuery
public BankQuery(Context ctx)
-
-
Method Detail
-
source
protected java.util.function.Supplier<java.util.stream.Stream<BankEntity>> source()
- Specified by:
sourcein classAbstractQuery<BankEntity,BankQuery,BankItemWidget>
-
withId
public BankQuery withId(int id)
Filters for items in the bank which have a specified item id.- Overrides:
withIdin classAbstractQuery<BankEntity,BankQuery,BankItemWidget>- Parameters:
id- The item id to filter for- Returns:
- BankQuery
-
isOpen
public boolean isOpen()
Determines whether the bank interface is currently open.This method interacts with the
BankServiceto check the status of the bank interface. The bank is considered open if the corresponding interface is visible and active in the client.- Returns:
trueif the bank interface is open,falseotherwise.
-
-