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