Package cloud.commandframework.meta
Class SimpleCommandMeta.Builder
- java.lang.Object
-
- cloud.commandframework.meta.SimpleCommandMeta.Builder
-
- Enclosing class:
- SimpleCommandMeta
public static final class SimpleCommandMeta.Builder extends java.lang.Object
Builder forSimpleCommandMeta
-
-
Method Summary
Modifier and Type Method Description @NonNull SimpleCommandMeta
build()
Construct a new meta instance@NonNull SimpleCommandMeta.Builder
with(@NonNull CommandMeta commandMeta)
Copy all values from another command meta instance<V> @NonNull SimpleCommandMeta.Builder
with(@NonNull CommandMeta.Key<V> key, @NonNull V value)
Store a new key-value pair in the meta map@NonNull SimpleCommandMeta.Builder
with(@NonNull java.lang.String key, @NonNull java.lang.String value)
Deprecated.For removal since 1.3.0, usethe typesafe alternative
instead
-
-
-
Method Detail
-
with
public @NonNull SimpleCommandMeta.Builder with(@NonNull CommandMeta commandMeta)
Copy all values from another command meta instance- Parameters:
commandMeta
- Existing instance- Returns:
- Builder instance
-
with
@Deprecated public @NonNull SimpleCommandMeta.Builder with(@NonNull java.lang.String key, @NonNull java.lang.String value)
Deprecated.For removal since 1.3.0, usethe typesafe alternative
insteadStore a new key-value pair in the meta map- Parameters:
key
- Keyvalue
- Value- Returns:
- Builder instance
-
with
public <V> @NonNull SimpleCommandMeta.Builder with(@NonNull CommandMeta.Key<V> key, @NonNull V value)
Store a new key-value pair in the meta map- Type Parameters:
V
- Value type- Parameters:
key
- Keyvalue
- Value- Returns:
- Builder instance
- Since:
- 1.3.0
-
build
public @NonNull SimpleCommandMeta build()
Construct a new meta instance- Returns:
- Meta instance
-
-