Package: java.time.temporal

## [Java] Interface TemporalAmount

-     public interface TemporalAmount

  GDK enhancements for TemporalAmount.

  displayName:
    TemporalAmount
  receiverFqcn:
    java.time.temporal.TemporalAmount

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `public long` | `getAt(TemporalUnit unit)` Supports the getAt operator; equivalent to calling the TemporalAmount.get method.

- - ### Method Detail

    - #### public long getAt(TemporalUnit unit)

      Supports the getAt operator; equivalent to calling the TemporalAmount.get method.

      throws:
        DateTimeException if a value for the field cannot be obtained
      throws:
        UnsupportedTemporalTypeException if the field is not supported
      throws:
        ArithmeticException if numeric overflow occurs
      Parameters:
        `unit` - a non-null TemporalUnit
      Returns:
        the value for the field
      Since:
        2.5.0