Package org.spongepowered.api.data
Interface KeyValueMatcher.Builder<V>
- Type Parameters:
V
- The value type
- All Superinterfaces:
AbstractBuilder<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 create
KeyValueMatcher
s.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theKeyValueMatcher
.<NV> KeyValueMatcher.Builder
<NV> Sets theKey
.operator
(KeyValueMatcher.Operator operator) Sets theKeyValueMatcher.Operator
.Sets the 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 Details
-
key
Sets theKey
.- Type Parameters:
NV
- The key value type- Parameters:
key
- The key- Returns:
- This builder, for chaining
-
operator
Sets theKeyValueMatcher.Operator
.- Parameters:
operator
- The operator- Returns:
- This builder, for chaining
-
value
Sets the value.- Parameters:
value
- The value- Returns:
- This builder, for chaining
-
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>
- Returns:
- The key value matcher
-