public static enum HebrewTime.Unit extends Enum<HebrewTime.Unit> implements ChronoUnit
Defines the time units for the Hebrew time.
| Modifier and Type | Method and Description |
|---|---|
int |
between(HebrewTime start,
HebrewTime end)
Calculates the difference between given Hebrew times in this unit.
|
double |
getLength()
Defines the typical length of this time unit in seconds without
taking into account anomalies like timezone effects or leap seconds.
|
static HebrewTime.Unit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HebrewTime.Unit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOfisCalendricalpublic static final HebrewTime.Unit HOURS
public static final HebrewTime.Unit HALAKIM
public static HebrewTime.Unit[] values()
for (HebrewTime.Unit c : HebrewTime.Unit.values()) System.out.println(c);
public static HebrewTime.Unit valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic double getLength()
ChronoUnitDefines the typical length of this time unit in seconds without taking into account anomalies like timezone effects or leap seconds.
Important note: This method can only yield an estimated value and is not intended to assist in calculations of durations, but only in sorting of units.
getLength in interface ChronoUnitpublic int between(HebrewTime start, HebrewTime end)
Calculates the difference between given Hebrew times in this unit.
start - start time (inclusive)end - end time (exclusive)Copyright © 2014–2021. All rights reserved.