Package top.focess.qq.api.command
Class CommandArgument<V>
- java.lang.Object
-
- top.focess.qq.api.command.CommandArgument<V>
-
public class CommandArgument<V> extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(String arg)DataConverter<V>getDataConverter()VgetValue()booleanisDefault()booleanisNullable()static CommandArgument<String>of(String value)static <V> CommandArgument<V>of(DataConverter<V> defaultDataConverter)static <V> CommandArgument<V>of(DataConverter<V> dataConverter, V value)static CommandArgument<Integer>ofInt()static CommandArgument<Long>ofLong()static <V> CommandArgument<V>ofNullable(DataConverter<V> dataConverter)static CommandArgument<String>ofString()voidput(DataCollection dataCollection, String arg)StringtoString()
-
-
-
Method Detail
-
ofString
public static CommandArgument<String> ofString()
-
ofLong
public static CommandArgument<Long> ofLong()
-
ofInt
public static CommandArgument<Integer> ofInt()
-
isNullable
public boolean isNullable()
-
isDefault
public boolean isDefault()
-
getValue
public V getValue()
-
getDataConverter
public DataConverter<V> getDataConverter()
-
of
public static <V> CommandArgument<V> of(DataConverter<V> defaultDataConverter)
-
of
@NotNull public static CommandArgument<String> of(@NotNull String value)
-
of
@NotNull public static <V> CommandArgument<V> of(@NotNull DataConverter<V> dataConverter, @NotNull V value)
-
ofNullable
@NotNull public static <V> CommandArgument<V> ofNullable(@NotNull DataConverter<V> dataConverter)
-
accept
public boolean accept(String arg)
-
put
public void put(DataCollection dataCollection, String arg)
-
-