|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.runtime.op.date.DateString
public final class DateString
helper class to convert a string to a Object
Constructor Summary | |
---|---|
DateString(String str)
constructor of the class |
Method Summary | |
---|---|
char |
charAt(int pos)
return char at given position |
char |
current()
|
boolean |
fwIfCurrent(char c)
forward inner cursor if value at actuell position is same as given. |
boolean |
fwIfNext(char c)
forward inner cursor if value at the next position is same as given. |
int |
getPos()
|
boolean |
isAfterLast()
returns if cursor is after the last position |
boolean |
isCurrent(char c)
check if char a actuell position of the inner cursor is same value like given value |
boolean |
isDigit()
returns if value at cursor position is a digit or not |
boolean |
isDigit(char c)
returns if c is a digit or not |
boolean |
isLast()
returns if cursor is on the last position |
boolean |
isLast(char c)
check if last char has same value than given char |
boolean |
isLastDigit()
returns if last char is a digit or not |
boolean |
isNext(char c)
check if char a actuell position of the inner cursor is same value like given value |
boolean |
isValidIndex()
returns if cursor is on a valid position |
int |
length()
|
void |
next()
set inner cursor one forward |
void |
next(int count)
set inner cursor [count] forward |
int |
readDigits()
read in the next digits from current position |
int |
readMonthString()
|
boolean |
removeWhitespace()
|
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DateString(String str)
str
- Date StringMethod Detail |
---|
public boolean isNext(char c)
c
- char to compare
public boolean isCurrent(char c)
c
- char to compare
public boolean isLast(char c)
c
- char to check
public void next()
public void next(int count)
count
- forward countpublic int length()
public boolean fwIfCurrent(char c)
c
- char to compare
public boolean fwIfNext(char c)
c
- char to compare
public int readDigits()
public boolean removeWhitespace()
public int readMonthString()
public boolean isDigit(char c)
c
- char to check
public boolean isDigit()
public boolean isLastDigit()
public char charAt(int pos)
pos
- postion to get value
public boolean isLast()
public boolean isAfterLast()
public boolean isValidIndex()
public char current()
public int getPos()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |