Package kboyle.oktane.core.prefix
Class CharPrefix
java.lang.Object
kboyle.oktane.core.prefix.CharPrefix
- Type Parameters:
CONTEXT
-
- All Implemented Interfaces:
Prefix
Represents a
Prefix
that is only a single character.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CharPrefix
public CharPrefix(char prefix)
-
-
Method Details
-
find
Description copied from interface:Prefix
Returns the index after the prefix, -1 if not found.- Specified by:
find
in interfacePrefix
- Parameters:
context
- The current executionCommandContext
.- Returns:
- The index where the current prefix ends, -1 if not found.
-
value
-
toString
-
equals
-
hashCode
public int hashCode()
-