Package org.spongepowered.api.data
Interface MutableDataProviderBuilder<H extends DataHolder.Mutable,V extends Value<E>,E>
-
- All Superinterfaces:
AbstractBuilder<DataProvider<V,E>>
,Buildable.Builder<DataProvider<V,E>>
,Builder<DataProvider<V,E>,MutableDataProviderBuilder<H,V,E>>
,ResettableBuilder<DataProvider<V,E>,MutableDataProviderBuilder<H,V,E>>
public interface MutableDataProviderBuilder<H extends DataHolder.Mutable,V extends Value<E>,E> extends Builder<DataProvider<V,E>,MutableDataProviderBuilder<H,V,E>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DataProvider<V,E>
build()
<NH extends H>
MutableDataProviderBuilder<NH,V,E>dataHolder(io.leangen.geantyref.TypeToken<NH> holder)
<NH extends H>
MutableDataProviderBuilder<NH,V,E>dataHolder(java.lang.Class<NH> holder)
MutableDataProviderBuilder<H,V,E>
delete(java.util.function.Consumer<H> delete)
MutableDataProviderBuilder<H,V,E>
deleteAnd(java.util.function.Function<H,java.lang.Boolean> delete)
MutableDataProviderBuilder<H,V,E>
deleteAndGet(java.util.function.Function<H,DataTransactionResult> delete)
MutableDataProviderBuilder<H,V,E>
get(java.util.function.Function<H,E> get)
<NV extends Value<NE>,NE>
MutableDataProviderBuilder<H,NV,NE>key(Key<NV> key)
MutableDataProviderBuilder<H,V,E>
resetOnDelete(java.util.function.Function<H,E> resetOnDeleteTo)
MutableDataProviderBuilder<H,V,E>
resetOnDelete(java.util.function.Supplier<E> resetOnDeleteTo)
MutableDataProviderBuilder<H,V,E>
set(java.util.function.BiConsumer<H,E> set)
MutableDataProviderBuilder<H,V,E>
setAnd(java.util.function.BiFunction<H,E,java.lang.Boolean> setAnd)
MutableDataProviderBuilder<H,V,E>
setAndGet(java.util.function.BiFunction<H,E,DataTransactionResult> setAndGet)
MutableDataProviderBuilder<H,V,E>
supports(java.util.function.Function<H,java.lang.Boolean> supports)
-
-
-
Method Detail
-
key
<NV extends Value<NE>,NE> MutableDataProviderBuilder<H,NV,NE> key(Key<NV> key)
-
dataHolder
<NH extends H> MutableDataProviderBuilder<NH,V,E> dataHolder(io.leangen.geantyref.TypeToken<NH> holder)
-
dataHolder
<NH extends H> MutableDataProviderBuilder<NH,V,E> dataHolder(java.lang.Class<NH> holder)
-
setAnd
MutableDataProviderBuilder<H,V,E> setAnd(java.util.function.BiFunction<H,E,java.lang.Boolean> setAnd)
-
delete
MutableDataProviderBuilder<H,V,E> delete(java.util.function.Consumer<H> delete)
-
deleteAnd
MutableDataProviderBuilder<H,V,E> deleteAnd(java.util.function.Function<H,java.lang.Boolean> delete)
-
deleteAndGet
MutableDataProviderBuilder<H,V,E> deleteAndGet(java.util.function.Function<H,DataTransactionResult> delete)
-
resetOnDelete
MutableDataProviderBuilder<H,V,E> resetOnDelete(java.util.function.Supplier<E> resetOnDeleteTo)
-
resetOnDelete
MutableDataProviderBuilder<H,V,E> resetOnDelete(java.util.function.Function<H,E> resetOnDeleteTo)
-
setAndGet
MutableDataProviderBuilder<H,V,E> setAndGet(java.util.function.BiFunction<H,E,DataTransactionResult> setAndGet)
-
supports
MutableDataProviderBuilder<H,V,E> supports(java.util.function.Function<H,java.lang.Boolean> supports)
-
build
DataProvider<V,E> build()
- Specified by:
build
in interfaceAbstractBuilder<H extends DataHolder.Mutable>
- Specified by:
build
in interfaceBuildable.Builder<H extends DataHolder.Mutable>
-
-