Class CompletableFutureWrapper
java.lang.Object
dev.rollczi.litecommands.wrapper.std.CompletableFutureWrapper
- All Implemented Interfaces:
Wrapper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal <EXPECTED> Wrap<EXPECTED> create(EXPECTED valueToWrap, WrapFormat<EXPECTED, ?> info) final <EXPECTED> Wrap<EXPECTED> createEmpty(WrapFormat<EXPECTED, ?> info) protected <EXPECTED> Supplier<CompletableFuture> emptyValue(WrapFormat<EXPECTED, ?> info) protected <EXPECTED> Supplier<CompletableFuture> wrapValue(EXPECTED valueToWrap, WrapFormat<EXPECTED, ?> info) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.rollczi.litecommands.wrapper.Wrapper
canCreateEmpty, create, createEmpty, getWrapperType
-
Constructor Details
-
CompletableFutureWrapper
-
-
Method Details
-
wrapValue
protected <EXPECTED> Supplier<CompletableFuture> wrapValue(@Nullable EXPECTED valueToWrap, WrapFormat<EXPECTED, ?> info) -
getWrapperType
- Specified by:
getWrapperTypein interfaceWrapper
-
create
public final <EXPECTED> Wrap<EXPECTED> create(@Nullable EXPECTED valueToWrap, WrapFormat<EXPECTED, ?> info) -
createEmpty
- Specified by:
createEmptyin interfaceWrapper
-
emptyValue
-