Package me.hsgamer.topper.query.holder
Class HolderQuery<K,V,H extends DataHolder<K,V>,A>
- java.lang.Object
-
- me.hsgamer.topper.query.simple.SimpleQuery<A,HolderQuery.Context<K,V,H>>
-
- me.hsgamer.topper.query.holder.HolderQuery<K,V,H,A>
-
- All Implemented Interfaces:
BiFunction<A,String,me.hsgamer.topper.query.core.QueryResult>,me.hsgamer.topper.query.core.Query<A>
public abstract class HolderQuery<K,V,H extends DataHolder<K,V>,A> extends SimpleQuery<A,HolderQuery.Context<K,V,H>>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHolderQuery.Context<K,V,H extends DataHolder<K,V>>
-
Constructor Summary
Constructors Modifier Constructor Description protectedHolderQuery()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Optional<HolderQuery.Context<K,V,H>>getContext(@NotNull String query)protected abstract @NotNull SimpleQueryDisplay<K,V>getDisplay(H holder)protected abstract Optional<H>getHolder(@NotNull String name)protected abstract Optional<K>getKey(A actor, @NotNull HolderQuery.Context<K,V,H> context)protected booleanisSingleHolder()-
Methods inherited from class me.hsgamer.topper.query.simple.SimpleQuery
apply, registerAction, registerActorAction
-
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
-
-
-
-
Method Detail
-
getDisplay
@NotNull protected abstract @NotNull SimpleQueryDisplay<K,V> getDisplay(@NotNull H holder)
-
isSingleHolder
protected boolean isSingleHolder()
-
getKey
protected abstract Optional<K> getKey(@NotNull A actor, @NotNull @NotNull HolderQuery.Context<K,V,H> context)
-
getContext
protected Optional<HolderQuery.Context<K,V,H>> getContext(@NotNull @NotNull String query)
- Specified by:
getContextin classSimpleQuery<A,HolderQuery.Context<K,V,H extends DataHolder<K,V>>>
-
-