Package me.hsgamer.topper.query.simple
Class SimpleQuery<A,C extends SimpleQuery.Context>
java.lang.Object
me.hsgamer.topper.query.simple.SimpleQuery<A,C>
- All Implemented Interfaces:
BiFunction<A,
,String, QueryResult> Query<A>
- Direct Known Subclasses:
HolderQuery
,SnapshotQuery
public abstract class SimpleQuery<A,C extends SimpleQuery.Context>
extends Object
implements Query<A>
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull QueryResult
getContext
(@NotNull String query) protected void
registerAction
(String name, BiFunction<@Nullable A, @NotNull C, @Nullable String> action) protected void
registerActorAction
(String name, BiFunction<@NotNull A, @NotNull C, @Nullable String> function) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
SimpleQuery
public SimpleQuery()
-
-
Method Details
-
getContext
-
registerAction
protected void registerAction(String name, BiFunction<@Nullable A, @NotNull C, @Nullable String> action) -
registerActorAction
protected void registerActorAction(String name, BiFunction<@NotNull A, @NotNull C, @Nullable String> function) -
apply
- Specified by:
apply
in interfaceBiFunction<A,
String, QueryResult> - Specified by:
apply
in interfaceQuery<A>
-