Interface Calendrical

    • Method Detail

      • get

        <T> T get​(CalendricalRule<T> rule)
        Gets the value of the specified calendrical rule.

        This method queries the value of the specified rule. If the rule is not supported then null will be returned.

        Where this method returns numeric values, Integer is the preferred type. The values should be within the range of the field wherever possible. For example, minute-of-hour should be from 0 to 59 inclusive. The calling code must validate the value however and not trust it to be valid.

        Parameters:
        rule - the rule to query, not null
        Returns:
        the value for the rule, null if no value for the rule