Package com.djrapitops.plan.commands.use
Class Arguments
- java.lang.Object
-
- com.djrapitops.plan.commands.use.Arguments
-
public class Arguments extends java.lang.Object
Command argument mutation and access utility.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
asList()
java.lang.String
concatenate(java.lang.String separator)
boolean
contains(java.lang.String argument)
java.util.Optional<java.lang.String>
get(int index)
java.util.Optional<java.lang.String>
getAfter(java.lang.String argumentIdentifier)
java.util.Optional<java.lang.Integer>
getInteger(int index)
boolean
isEmpty()
Arguments
removeFirst()
java.lang.String
toString()
-
-
-
Method Detail
-
get
public java.util.Optional<java.lang.String> get(int index)
-
getInteger
public java.util.Optional<java.lang.Integer> getInteger(int index)
-
getAfter
public java.util.Optional<java.lang.String> getAfter(java.lang.String argumentIdentifier)
-
contains
public boolean contains(java.lang.String argument)
-
asList
public java.util.List<java.lang.String> asList()
-
removeFirst
public Arguments removeFirst()
-
concatenate
public java.lang.String concatenate(java.lang.String separator)
-
isEmpty
public boolean isEmpty()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-