Package com.djrapitops.plan
Class DataSvc
java.lang.Object
com.djrapitops.plan.DataSvc
- All Implemented Interfaces:
DataService
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.djrapitops.plan.DataService
DataService.Mapping
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<A, B> B
<S, P> Optional<S>
<T> Optional<T>
<A> DataService
<A> DataService
registerConsumer(Class<A> type, Consumer<A> consumer)
<P, S> DataService
registerDBSupplier(Class<S> type, Class<P> parameterType, Function<P,Query<S>> queryVisitor)
<A, B> DataService
registerMapper(Class<A> typeA, Class<B> typeB, Function<A,B> mapper)
<A> DataService
registerSupplier(Class<A> type, Supplier<A> supplier)
<P, S> DataService
registerSupplier(Class<S> type, Class<P> parameterType, Function<P,S> supplierWithParameter)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.djrapitops.plan.DataService
pull, pull
-
Constructor Details
-
DataSvc
-
-
Method Details
-
push
- Specified by:
push
in interfaceDataService
-
pull
- Specified by:
pull
in interfaceDataService
-
mapTo
- Specified by:
mapTo
in interfaceDataService
-
registerMapper
- Specified by:
registerMapper
in interfaceDataService
-
registerConsumer
- Specified by:
registerConsumer
in interfaceDataService
-
registerSupplier
- Specified by:
registerSupplier
in interfaceDataService
-
pull
- Specified by:
pull
in interfaceDataService
-
registerSupplier
public <P, S> DataService registerSupplier(Class<S> type, Class<P> parameterType, Function<P,S> supplierWithParameter)- Specified by:
registerSupplier
in interfaceDataService
-
registerDBSupplier
public <P, S> DataService registerDBSupplier(Class<S> type, Class<P> parameterType, Function<P,Query<S>> queryVisitor)- Specified by:
registerDBSupplier
in interfaceDataService
-