public final class AsciiSet
extends java.lang.Object
This class is an internal implementation detail only intended for use within spectator. It is subject to change without notice.
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(char c)
Returns true if the character contained within the set.
|
boolean |
containsAll(java.lang.CharSequence str)
Returns true if all characters in the string are contained within the set.
|
boolean |
equals(java.lang.Object obj) |
static AsciiSet |
fromPattern(java.lang.String pattern)
Create a set containing ascii characters using a simple pattern.
|
int |
hashCode() |
java.lang.String |
replaceNonMembers(java.lang.String input,
char replacement)
Replace all characters in the input string with the replacement character.
|
java.lang.String |
toString() |
public static AsciiSet fromPattern(java.lang.String pattern)
ABC would contain the characters
A, B, and C. Ranges are supported so all uppercase letters could
be specified as A-Z. The dash, -, will be included as part of the set if
it is at the start or end of the pattern.pattern - String specification of the character set.pattern.public boolean contains(char c)
public boolean containsAll(java.lang.CharSequence str)
public java.lang.String replaceNonMembers(java.lang.String input,
char replacement)
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object