public class BusinessTemporal extends Object implements Temporal, Comparable<Temporal>
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Temporal t) |
boolean |
equals(Object obj)
Tells if this business temporal is equals to another one.
|
long |
getLong(TemporalField field) |
int |
hashCode() |
BusinessTemporal |
increment()
Increments the least significant field of this Business Temporal by one.
|
boolean |
isSupported(TemporalField field) |
boolean |
isSupported(TemporalUnit unit) |
static BusinessTemporal |
of(Map<ChronoField,Integer> fieldValues)
Builds a
BusinessTemporal instance from its fields values |
Temporal |
plus(long amountToAdd,
TemporalUnit unit) |
<R> R |
query(TemporalQuery<R> query) |
long |
since(Temporal temporal,
ChronoUnit unit)
Get the amount of time between the provided temporal and the next
occurrence of this business temporal.
|
long |
until(Temporal endExclusive,
TemporalUnit unit) |
Temporal |
with(TemporalField field,
long newValue) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitget, rangepublic static BusinessTemporal of(Map<ChronoField,Integer> fieldValues)
BusinessTemporal instance from its fields valuesfieldValues - the values of the fields. The fields must be
contiguous and have a fixed range.BusinessTemporal instancepublic <R> R query(TemporalQuery<R> query)
query in interface TemporalAccessorpublic boolean isSupported(TemporalField field)
isSupported in interface TemporalAccessorpublic long getLong(TemporalField field)
getLong in interface TemporalAccessorpublic boolean isSupported(TemporalUnit unit)
isSupported in interface Temporalpublic Temporal with(TemporalField field, long newValue)
public Temporal plus(long amountToAdd, TemporalUnit unit)
public long until(Temporal endExclusive, TemporalUnit unit)
public BusinessTemporal increment()
public long since(Temporal temporal, ChronoUnit unit)
temporal - the temporal, must support the "precision" queryunit - the unit to measure the amount inpublic int compareTo(Temporal t)
compareTo in interface Comparable<Temporal>public boolean equals(Object obj)
Copyright © 2017. All rights reserved.