V - generic type of element valuespublic interface TextElement<V> extends ChronoElement<V>
A chronological element which can be formatted as text or can be parsed from a text.
| Modifier and Type | Method and Description |
|---|---|
V |
parse(CharSequence text,
ParsePosition status,
AttributeQuery attributes)
Interpretes the given text as element value.
|
void |
print(ChronoDisplay context,
Appendable buffer,
AttributeQuery attributes)
Converts the element value in given context to a formatted text.
|
compare, getDefaultMaximum, getDefaultMinimum, getSymbol, getType, isDateElement, isLenient, isTimeElement, namecomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongvoid print(ChronoDisplay context, Appendable buffer, AttributeQuery attributes) throws IOException
Converts the element value in given context to a formatted text.
Implementation note: The concrete element value is obtainable by the
expression context.get(this).
context - time context with the value of this elementbuffer - format buffer any text output will be sent toattributes - query for control attributesIOException - if writing to buffer failsV parse(CharSequence text, ParsePosition status, AttributeQuery attributes)
Interpretes the given text as element value.
Implementation note: Any implementation will start first at the
position status.getIndex() and
either set the new position after successful parsing or return
null in case of error.
text - text to be parsedstatus - current parsing positionattributes - query for control attributesnull if parsing
was not successfulCopyright © 2014–2015. All rights reserved.