Class UUIDArgument<C>
- java.lang.Object
-
- cloud.commandframework.arguments.CommandArgument<C,java.util.UUID>
-
- cloud.commandframework.arguments.standard.UUIDArgument<C>
-
- All Implemented Interfaces:
java.lang.Comparable<CommandArgument<?,?>>
public final class UUIDArgument<C> extends CommandArgument<C,java.util.UUID>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UUIDArgument.Builder<C>
static class
UUIDArgument.UUIDParseException
static class
UUIDArgument.UUIDParser<C>
-
Method Summary
Modifier and Type Method Description static <C> @NonNull UUIDArgument.Builder<C>
newBuilder(@NonNull java.lang.String name)
Create a new builderstatic <C> @NonNull CommandArgument<C,java.util.UUID>
of(@NonNull java.lang.String name)
Create a new required command componentstatic <C> @NonNull CommandArgument<C,java.util.UUID>
optional(@NonNull java.lang.String name)
Create a new optional command componentstatic <C> @NonNull CommandArgument<C,java.util.UUID>
optional(@NonNull java.lang.String name, @NonNull java.util.UUID defaultUUID)
Create a new required command component with a default value-
Methods inherited from class cloud.commandframework.arguments.CommandArgument
addPreprocessor, compareTo, copy, equals, getDefaultValue, getName, getOwningCommand, getParser, getSuggestionsProvider, getValueType, hasDefaultValue, hashCode, isArgumentRegistered, isRequired, ofType, ofType, preprocess, setArgumentRegistered, setOwningCommand, toString
-
-
-
-
Method Detail
-
newBuilder
public static <C> @NonNull UUIDArgument.Builder<C> newBuilder(@NonNull java.lang.String name)
Create a new builder- Type Parameters:
C
- Command sender type- Parameters:
name
- Name of the component- Returns:
- Created builder
-
of
public static <C> @NonNull CommandArgument<C,java.util.UUID> of(@NonNull java.lang.String name)
Create a new required command component- Type Parameters:
C
- Command sender type- Parameters:
name
- Component name- Returns:
- Created component
-
optional
public static <C> @NonNull CommandArgument<C,java.util.UUID> optional(@NonNull java.lang.String name)
Create a new optional command component- Type Parameters:
C
- Command sender type- Parameters:
name
- Component name- Returns:
- Created component
-
optional
public static <C> @NonNull CommandArgument<C,java.util.UUID> optional(@NonNull java.lang.String name, @NonNull java.util.UUID defaultUUID)
Create a new required command component with a default value- Type Parameters:
C
- Command sender type- Parameters:
name
- Component namedefaultUUID
- Default uuid- Returns:
- Created component
-
-