Interface Handled

All Superinterfaces:
Comparable<Handled>
All Known Subinterfaces:
Group, NumberFormatter, NumberSuffixFormatter, Space, Value
All Known Implementing Classes:
CharDigitSuffixFormatter, EvenLengthNumberFormatter, ExponentSuffixFormatter, GroupImpl, MappingOperationModifier.SpecialValue, NamedSuffixFormatter, SimpleNumberFormatter, SpaceImpl, SplittingNumberFormatter, StaticValue, ValueImpl

public interface Handled extends Comparable<Handled>
An interface determining that any class implementing it should be identified with a Handle.
  • Method Summary

    Modifier and Type
    Method
    Description
    default int
    Compares this object with the specified object for order.
     
  • Method Details

    • getHandle

      Handle getHandle()
      Returns:
      identifying Handle of this object
    • compareTo

      default int compareTo(Handled o)
      Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The order of objects is specified by their handles, using Handle.compareTo(Handle).
      Specified by:
      compareTo in interface Comparable<Handled>
      Parameters:
      o - object to be compared.
      Returns:
      negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object
      Throws:
      NullPointerException - if the specified object is null