Package org.spongepowered.api.data
Interface KeyValueMatcher.Builder<V>
-
- Type Parameters:
V
- The value type
- All Superinterfaces:
AbstractBuilder<KeyValueMatcher<V>>
,Buildable.Builder<KeyValueMatcher<V>>
,Builder<KeyValueMatcher<V>,KeyValueMatcher.Builder<V>>
,CopyableBuilder<KeyValueMatcher<V>,KeyValueMatcher.Builder<V>>
,DataBuilder<KeyValueMatcher<V>>
,ResettableBuilder<KeyValueMatcher<V>,KeyValueMatcher.Builder<V>>
- Enclosing interface:
- KeyValueMatcher<V>
public static interface KeyValueMatcher.Builder<V> extends Builder<KeyValueMatcher<V>,KeyValueMatcher.Builder<V>>, CopyableBuilder<KeyValueMatcher<V>,KeyValueMatcher.Builder<V>>, DataBuilder<KeyValueMatcher<V>>
A builder to createKeyValueMatcher
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KeyValueMatcher<V>
build()
Builds theKeyValueMatcher
.<NV> KeyValueMatcher.Builder<NV>
key(Key<? extends Value<NV>> key)
Sets theKey
.KeyValueMatcher.Builder<V>
operator(KeyValueMatcher.Operator operator)
Sets theKeyValueMatcher.Operator
.KeyValueMatcher.Builder<V>
value(@Nullable Value<? extends V> value)
Sets the value.KeyValueMatcher.Builder<V>
value(@Nullable V value)
Sets the value.-
Methods inherited from interface org.spongepowered.api.util.CopyableBuilder
from
-
Methods inherited from interface org.spongepowered.api.data.persistence.DataBuilder
build
-
-
-
-
Method Detail
-
key
<NV> KeyValueMatcher.Builder<NV> key(Key<? extends Value<NV>> key)
Sets theKey
.- Type Parameters:
NV
- The key value type- Parameters:
key
- The key- Returns:
- This builder, for chaining
-
operator
KeyValueMatcher.Builder<V> operator(KeyValueMatcher.Operator operator)
Sets theKeyValueMatcher.Operator
.- Parameters:
operator
- The operator- Returns:
- This builder, for chaining
-
value
KeyValueMatcher.Builder<V> value(@Nullable V value)
Sets the value.- Parameters:
value
- The value- Returns:
- This builder, for chaining
-
value
KeyValueMatcher.Builder<V> value(@Nullable Value<? extends V> value)
Sets the value.- Parameters:
value
- The value- Returns:
- This builder, for chaining
-
build
KeyValueMatcher<V> build()
Builds theKeyValueMatcher
.- Specified by:
build
in interfaceAbstractBuilder<V>
- Specified by:
build
in interfaceBuildable.Builder<V>
- Returns:
- The key value matcher
-
-