Package org.spongepowered.api.data
Interface ImmutableDataProviderBuilder<H extends DataHolder,V extends Value<E>,E>
-
- All Superinterfaces:
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(Class<NH> holder)
ImmutableDataProviderBuilder<H,V,E>
get(Function<H,E> get)
<NV extends Value<NE>,NE>
ImmutableDataProviderBuilder<H,NV,NE>key(Key<NV> key)
ImmutableDataProviderBuilder<H,V,E>
set(BiFunction<H,E,H> set)
ImmutableDataProviderBuilder<H,V,E>
supports(Function<H,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(Class<NH> holder)
-
set
ImmutableDataProviderBuilder<H,V,E> set(BiFunction<H,E,H> set)
-
build
DataProvider<? extends Value<E>,E> build()
- Specified by:
build
in interfaceBuildable.Builder<H extends DataHolder>
-
-