Package org.n52.janmayen
Class CharacterClass
java.lang.Object
org.n52.janmayen.CharacterClass
Class to represent a characater class.
-
Method Summary
Modifier and TypeMethodDescriptionchars()Get the characters represented by this class.booleanstatic CharacterClassCreates a new character class including the supplied characters.static CharacterClassCreates a new character class including the supplied characters.static CharacterClassCreates a new character class including the supplied characters.static CharacterClassforClasses(Collection<CharacterClass> characters) Creates a new character class including the supplied character classes.static CharacterClassforClasses(CharacterClass... characters) Creates a new character class including the supplied character classes.static CharacterClassforRange(int min, int max) Creates a new character class including the range of characters betweenminandmax.inthashCode()booleanincludes(int c) Check ifcis included in this class.
-
Method Details
-
chars
Get the characters represented by this class.- Returns:
- the characters
-
includes
public boolean includes(int c) Check ifcis included in this class.- Parameters:
c- the character- Returns:
- if it is included
-
hashCode
public int hashCode() -
equals
-
forClasses
Creates a new character class including the supplied character classes.- Parameters:
characters- the character classes- Returns:
- the character class
-
forClasses
Creates a new character class including the supplied character classes.- Parameters:
characters- the character classes- Returns:
- the character class
-
forRange
Creates a new character class including the range of characters betweenminandmax.- Parameters:
min- the (inclusive) minimummax- the (inclusive) maximum- Returns:
- the character class
-
forChars
Creates a new character class including the supplied characters.- Parameters:
characters- the characters- Returns:
- the character class
-
forChars
Creates a new character class including the supplied characters.- Parameters:
characters- the characters- Returns:
- the character class
-
forChars
Creates a new character class including the supplied characters.- Parameters:
characters- the characters- Returns:
- the character class
-