Interface AgeRange


  • public interface AgeRange
    Key of AgeTile.

    Age range contains lower bound `from` and upper bound `to`. Both of them are inclusive boundary.

    And un-identified friends aggregated in UNKNOWN key. UNKNOWN key is immutable singleton instance. You can check equal to UNKNOWN by == or #equals.
    See Also:
    AgeTile.getAge()
    • Field Detail

      • UNKNOWN

        static final AgeRange UNKNOWN
        Unknown identifier of AgeRange.

        This instance is immutable and singleton. You can check equal to UNKNOWN by == or #equals.

    • Method Detail

      • valueOf

        static AgeRange valueOf​(java.lang.String value)
      • getFrom

        java.util.OptionalInt getFrom()
        Start of age range. Inclusive.
        Returns:
        Start of age range. Inclusive. null iff UNKNOWN range.
      • getTo

        java.util.OptionalInt getTo()
        End of age range. Inclusive.
        Returns:
        End of age range. Exclusive. null if UNKNOWN or last (<∞) range .
      • getJsonRawValue

        java.lang.String getJsonRawValue()