ComparableExt<Field>
public class StringFieldExt extends StringField
StringField
class for handling any strings.
This class is only for presentation purposes.
Memory container with fields of type StringFieldExt
should not be written to ISF file
and it should not be read from ISF file, since it can generate ISF parser errors.Constructor | Description |
---|---|
StringFieldExt() |
Creates an empty field with empty string.
|
StringFieldExt(java.lang.String value) |
Creates new
StringField with given value . |
Modifier and Type | Method | Description |
---|---|---|
Field |
duplicate() |
Duplicates this field
|
void |
set(java.lang.String string) |
Changes the value of
StringFieldExt . |
isGenerated, setGenerated
compareTo, isSimilarTo, isUnknown, setUnknown
public StringFieldExt()
public StringFieldExt(java.lang.String value)
StringField
with given value
.
Any string is accepted here (besides null
).value
- new string to be setjava.lang.NullPointerException
- when string value is null
set(String)
public void set(java.lang.String string)
StringFieldExt
.
When set is done field's value is known (result of isUnknown()
is KNOWN
).
In this method any String
value is accepted, except null
.set
in class StringField
string
- new value to be setjava.lang.NullPointerException
- when string value is null
public Field duplicate()
duplicate
in class StringField
StringFieldExt
object with the same value