Uses of Class
org.threeten.extra.Hours

Packages that use Hours
Package
Description
Value types and utilities that extend java.time.*.
  • Uses of Hours in org.threeten.extra

    Fields in org.threeten.extra declared as Hours
    Modifier and Type
    Field
    Description
    static final Hours
    Hours.ZERO
    A constant for zero hours.
    Methods in org.threeten.extra that return Hours
    Modifier and Type
    Method
    Description
    Hours.abs()
    Returns a copy of this duration with a positive length.
    static Hours
    Hours.between(Temporal startInclusive, Temporal endExclusive)
    Obtains a Hours consisting of the number of hours between two temporals.
    Hours.dividedBy(int divisor)
    Returns an instance with the amount divided by the specified divisor.
    static Hours
    Hours.from(TemporalAmount amount)
    Obtains an instance of Hours from a temporal amount.
    Hours.minus(int hours)
    Returns a copy of this amount with the specified number of hours subtracted.
    Hours.minus(TemporalAmount amountToSubtract)
    Returns a copy of this amount with the specified amount subtracted.
    Hours.multipliedBy(int scalar)
    Returns an instance with the amount multiplied by the specified scalar.
    Hours.negated()
    Returns an instance with the amount negated.
    static Hours
    Hours.of(int hours)
    Obtains an Hours representing a number of hours.
    static Hours
    Hours.parse(CharSequence text)
    Obtains a Hours from a text string such as PTnH.
    Hours.plus(int hours)
    Returns a copy of this amount with the specified number of hours added.
    Hours.plus(TemporalAmount amountToAdd)
    Returns a copy of this amount with the specified amount added.
    Methods in org.threeten.extra with parameters of type Hours
    Modifier and Type
    Method
    Description
    int
    Hours.compareTo(Hours otherAmount)
    Compares this amount to the specified Hours.