|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectefxtools.sample.ae.helper.CharTools
public class CharTools
Helper class that offers several functions on characters, mainly for determining if a given character belongs to a certain category of characters.
| Constructor Summary | |
|---|---|
CharTools()
|
|
| Method Summary | |
|---|---|
static boolean |
isAt(char c)
Determines whether c is an "@". |
static boolean |
isBullet(char c)
Determines whether c is possible icon
of a bulletpoint of an unordererd list. |
static boolean |
isComma(char c)
Determines whether c is a comma. |
static boolean |
isCurrencySymbol(char c)
Determines whether c is one of the most common
currency symbols, namely €, $, £ or ¥. |
static boolean |
isFullStop(char c)
Determines whether c is a period, a
question mark or an exclamation mark. |
static boolean |
isHyphen(char c)
Determines whether c is one of the
versions of hyphens. |
static boolean |
isOpeningBracket(char c)
Determines whether c is one of the
four types of an opening bracket. |
static boolean |
isPeriod(char c)
Determines whether c is a period. |
static boolean |
isQuotationMark(char c)
Determines whether c is any of the
existing quotation mark characters. |
static boolean |
isRightParenthesis(char c)
Determines whether c is one of the
four types of a closing bracket. |
static boolean |
isTendencySymbol(char c)
Determines whether c is tendency symbol,
i.e. plus or a minus. |
static boolean |
isUmambiguousEndMark(char c)
Determines whether c is one of the
characters, which can be seen as unambiguous end
mark, i.e. it is a question mark or an exclamation
mark. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CharTools()
| Method Detail |
|---|
public static boolean isFullStop(char c)
c is a period, a
question mark or an exclamation mark.
c - The character
true iff. c is a
full stop.public static boolean isUmambiguousEndMark(char c)
c is one of the
characters, which can be seen as unambiguous end
mark, i.e. it is a question mark or an exclamation
mark.
c - The character
true iff. c is an unambiguous end markpublic static boolean isPeriod(char c)
c is a period.
c - The character
true iff. c is a period.public static boolean isComma(char c)
c is a comma.
c - The character
true iff. c is a comma.public static boolean isHyphen(char c)
c is one of the
versions of hyphens.
c - The character
true iff. c is a hyphenpublic static boolean isQuotationMark(char c)
c is any of the
existing quotation mark characters.
c - The character
true iff. c is a quaotation mark.public static boolean isOpeningBracket(char c)
c is one of the
four types of an opening bracket.
c - The character
true iff. c is an opening bracket.public static boolean isRightParenthesis(char c)
c is one of the
four types of a closing bracket.
c - The character
true iff. c is a closing bracket.public static boolean isBullet(char c)
c is possible icon
of a bulletpoint of an unordererd list.
c - The character
true iff. c is a bullet.public static boolean isTendencySymbol(char c)
c is tendency symbol,
i.e. plus or a minus.
c - The character
true iff. c is a tendency symbolpublic static boolean isAt(char c)
c is an "@".
c - The character
true iff. c is "@".public static boolean isCurrencySymbol(char c)
c is one of the most common
currency symbols, namely €, $, £ or ¥.
c - The character
true iff. c is €, $, £ or ¥
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||