difference method

int difference(
  1. SlotTimeUnit other
)

Returns the difference between this SlotTimeUnit and other in units.

Implementation

int difference(SlotTimeUnit other) {
  return index - other.index;
}