Package org.bardframework.time.format
Class Parsed
java.lang.Object
org.bardframework.time.format.Parsed
- All Implemented Interfaces:
TemporalAccessor
A store of parsed data.
This class is used during parsing to collect the data. Part of the parsing process involves handling optional blocks and multiple copies of the data get created to support the necessary backtracking.
Once parsing is completed, this class can be used as the resultant TemporalAccessor.
In most cases, it is only exposed once the fields have been resolved.
This class is a mutable context intended for use from a single thread. Usage of the class is thread-safe within standard parsing as a new instance of this class is automatically created for each parse and parsing is single-threaded
-
Method Summary
Modifier and TypeMethodDescriptionlonggetLong(TemporalField field) booleanisSupported(TemporalField field) <R> Rquery(TemporalQuery<R> query) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.time.temporal.TemporalAccessor
get, range
-
Method Details
-
isSupported
- Specified by:
isSupportedin interfaceTemporalAccessor
-
getLong
- Specified by:
getLongin interfaceTemporalAccessor
-
query
- Specified by:
queryin interfaceTemporalAccessor
-
toString
-