private class DateFormat.TestCase
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
newBuf
Input sequence of characters after the autocompletion mechanism has
worked in it.
|
private java.lang.String |
oldBuf
Input sequence of characters entered by one in a year part of a date
field.
|
private java.lang.Integer |
year
The year that input sequence should be converted to.
|
Constructor and Description |
---|
TestCase(java.lang.String oldBuf,
java.lang.String newBuf,
java.lang.Integer year)
Construct an instance of a test case with all data needed to test
the year autocompletion and its string-to-number conversion.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNewBuf()
Get the input sequence of characters after autocompletion.
|
java.lang.String |
getOldBuf()
Get the input sequence of characters.
|
java.lang.Integer |
getYear()
Get the year that input sequence should be converted to.
|
private java.lang.String oldBuf
private java.lang.String newBuf
private java.lang.Integer year
public TestCase(java.lang.String oldBuf, java.lang.String newBuf, java.lang.Integer year)
oldBuf
- Input sequence of characters entered by one in a year part
of a date field. The '_' symbol in this sequence means an
empty placeholder.newBuf
- Input sequence of characters after the autocompletion
mechanism has worked in it. The '_' symbol in this sequence
means an empty placeholder.year
- The year that input sequence should be converted to.
null
means an invalid year.public java.lang.String getOldBuf()
public java.lang.String getNewBuf()
public java.lang.Integer getYear()
null
if the sequence represents an invalid
year.