Class ChatboxQueryBuilder
- java.lang.Object
-
- com.runemate.game.api.hybrid.queries.QueryBuilder<Chatbox.Message,ChatboxQueryBuilder,ChatboxQueryResults>
-
- com.runemate.game.api.hybrid.queries.ChatboxQueryBuilder
-
- All Implemented Interfaces:
java.lang.Cloneable
public class ChatboxQueryBuilder extends QueryBuilder<Chatbox.Message,ChatboxQueryBuilder,ChatboxQueryResults>
-
-
Constructor Summary
Constructors Constructor Description ChatboxQueryBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accepts(Chatbox.Message argument)
Checks if the current builder accepts the argumentChatboxQueryBuilder
get()
Gets a reference to this with the correct typejava.util.concurrent.Callable<java.util.List<? extends Chatbox.Message>>
getDefaultProvider()
Gets the default provider of the unfiltered data entries.ChatboxQueryBuilder
senders(java.lang.String... senders)
ChatboxQueryBuilder
senders(java.util.Collection<java.lang.String> senders)
ChatboxQueryBuilder
textContains(java.lang.String... texts)
ChatboxQueryBuilder
textContains(java.util.Collection<java.lang.String> texts)
ChatboxQueryBuilder
texts(java.lang.String... texts)
ChatboxQueryBuilder
texts(java.util.Collection<java.lang.String> texts)
ChatboxQueryBuilder
types(Chatbox.Message.Type... types)
ChatboxQueryBuilder
types(java.util.Collection<Chatbox.Message.Type> types)
-
-
-
Method Detail
-
accepts
public boolean accepts(Chatbox.Message argument)
Description copied from class:QueryBuilder
Checks if the current builder accepts the argument- Overrides:
accepts
in classQueryBuilder<Chatbox.Message,ChatboxQueryBuilder,ChatboxQueryResults>
- Parameters:
argument
- The argument to be tested against the built query.- Returns:
- true if the provided argument is accepted by the built query.
-
senders
public ChatboxQueryBuilder senders(java.util.Collection<java.lang.String> senders)
-
texts
public ChatboxQueryBuilder texts(java.util.Collection<java.lang.String> texts)
-
textContains
public ChatboxQueryBuilder textContains(java.util.Collection<java.lang.String> texts)
-
types
public ChatboxQueryBuilder types(java.util.Collection<Chatbox.Message.Type> types)
-
senders
public ChatboxQueryBuilder senders(java.lang.String... senders)
-
texts
public ChatboxQueryBuilder texts(java.lang.String... texts)
-
textContains
public ChatboxQueryBuilder textContains(java.lang.String... texts)
-
types
public ChatboxQueryBuilder types(Chatbox.Message.Type... types)
-
get
public ChatboxQueryBuilder get()
Description copied from class:QueryBuilder
Gets a reference to this with the correct type- Specified by:
get
in classQueryBuilder<Chatbox.Message,ChatboxQueryBuilder,ChatboxQueryResults>
-
getDefaultProvider
public java.util.concurrent.Callable<java.util.List<? extends Chatbox.Message>> getDefaultProvider()
Description copied from class:QueryBuilder
Gets the default provider of the unfiltered data entries. Must be thread-safe.- Specified by:
getDefaultProvider
in classQueryBuilder<Chatbox.Message,ChatboxQueryBuilder,ChatboxQueryResults>
- Returns:
- A non-null
Callable
provider that is used by default.
-
-