Class UUIDParser
- java.lang.Object
- 
- com.github.siroshun09.mccommand.common.argument.parser.UUIDParser
 
- 
- All Implemented Interfaces:
- ArgumentParser<UUID>
 
 public class UUIDParser extends Object implements ArgumentParser<UUID> 
- 
- 
Constructor SummaryConstructors Constructor Description UUIDParser()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable UUIDparse(@NotNull Argument argument)Parses anArgumentto a specified type and returns it.@NotNull UUIDparseOrThrow(@NotNull Argument argument)Parses anArgumentto a specified type and returns it.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.github.siroshun09.mccommand.common.argument.parser.ArgumentParsergenerateException, generateException, parseOptional, parseOrDefault
 
- 
 
- 
- 
- 
Constructor Detail- 
UUIDParserpublic UUIDParser() 
 
- 
 - 
Method Detail- 
parse@Nullable public @Nullable UUID parse(@NotNull @NotNull Argument argument) Parses anArgumentto a specified type and returns it.- Specified by:
- parsein interface- ArgumentParser<UUID>
- Parameters:
- argument- the argument to be parsed
- Returns:
- the value to be parsed, or nullif the parsing fails
 
 - 
parseOrThrow@NotNull public @NotNull UUID parseOrThrow(@NotNull @NotNull Argument argument) throws IllegalArgumentException Parses anArgumentto a specified type and returns it.Depending on the implementation, it is possible to use Throwable.getCause()to get the exception that caused the conversion to fail.- Specified by:
- parseOrThrowin interface- ArgumentParser<UUID>
- Parameters:
- argument- the argument to be parsed
- Returns:
- the value to be parsed, or nullif the parsing fails
- Throws:
- IllegalArgumentException- if the parsing fails
 
 
- 
 
-