public final class Symbol extends Object implements Serializable
Constructor and Description |
---|
Symbol(SymbolType symbolType,
char charValue)
Constructor.
|
Symbol(SymbolType symbolType,
char charValue,
String invalidCharsStr)
Constructor.
|
Symbol(SymbolType symbolType,
char charValue,
String invalidCharsStr,
boolean haveBeforeSpace,
boolean haveAfterSpace)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
char[] |
getInvalidChars()
Get invalid characters.
|
SymbolType |
getType()
Get name of character.
|
char |
getValue()
Get value of character.
|
int |
hashCode() |
boolean |
isNeedAfterSpace()
Get the flag to know the character should have a space.
|
boolean |
isNeedBeforeSpace()
Get the flag to know the character should have a space.
|
String |
toString() |
public Symbol(SymbolType symbolType, char charValue)
symbolType
- name of target charactercharValue
- characterpublic Symbol(SymbolType symbolType, char charValue, String invalidCharsStr)
symbolType
- name of target charactercharValue
- characterinvalidCharsStr
- list of invalid characterspublic Symbol(SymbolType symbolType, char charValue, String invalidCharsStr, boolean haveBeforeSpace, boolean haveAfterSpace)
symbolType
- name of target charactercharValue
- characterinvalidCharsStr
- list of invalid charactershaveBeforeSpace
- flag to have a space before the characterhaveAfterSpace
- flag to have a pace after the characterpublic SymbolType getType()
public char getValue()
public char[] getInvalidChars()
public boolean isNeedBeforeSpace()
public boolean isNeedAfterSpace()
Copyright © 2015. All rights reserved.