Initializer
Priority(String string, Integer integer)
Parameters:
  • string

    The name of this priority.

  • integer

    An integer measuring the importance of this Priority.

Attributes
stringSource Codeshared actual String string

The name of this priority.

Inherited Attributes
Attributes inherited from: Object
Methods
compareSource Codeshared actual Comparison compare(Priority other)

Compares this value with the given value, returning:

  • larger, if this value is strictly larger than the given value,
  • smaller, if this value is strictly smaller than the given value, or
  • equal, if this value is equal (equals) to the given value.

For any two values x and y such that the expression x.compare(y) is well-typed, the expression may be written:

x <=> y 

Implementations must respect the constraints that:

  • x==y if and only if x<=>y == equal (consistency with equals()),
  • if x>y then y<x (symmetry), and
  • if x>y and y>z then x>z (transitivity).
Inherited Methods
Methods inherited from: Object
Methods inherited from: Comparable<Other>