Package revxrsal.commands.core
Class MutableCommandPath
java.lang.Object
revxrsal.commands.core.CommandPath
revxrsal.commands.core.MutableCommandPath
- All Implemented Interfaces:
Comparable<CommandPath>
,Iterable<String>
-
Field Summary
Fields inherited from class revxrsal.commands.core.CommandPath
path
-
Constructor Summary
ConstructorDescriptionMutableCommandPath
(String[] path) MutableCommandPath
(ArgumentStack argumentStack) -
Method Summary
Methods inherited from class revxrsal.commands.core.CommandPath
compareTo, equals, get, get, get, getCategoryPath, getFirst, getLast, getName, getParent, getSubcommandPath, hashCode, isChildOf, isParentOf, isRoot, size, toList, toMutablePath, toRealString, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
MutableCommandPath
-
MutableCommandPath
-
-
Method Details
-
empty
-
removeFirst
-
removeLast
-
addFirst
-
addLast
-
contains
-
add
-
clear
public void clear() -
add
-
peek
-
poll
-
push
-
pop
-
toImmutablePath
-
iterator
- Specified by:
iterator
in interfaceIterable<String>
- Overrides:
iterator
in classCommandPath
-
isMutable
public boolean isMutable()Description copied from class:CommandPath
Returns whether is this command path mutable or not.This should only return true in cases of
MutableCommandPath
.- Overrides:
isMutable
in classCommandPath
- Returns:
- Whether is the path mutable or not.
-