Home | History | Annotate | Download | only in duration

Lines Matching defs:ordinal

20   /** The ordinal of the unit, in order from largest to smallest. */
21 final byte ordinal;
24 private TimeUnit(String name, int ordinal) {
26 this.ordinal = (byte) ordinal;
60 return ordinal == 0 ? null : units[ordinal - 1];
65 return ordinal == units.length - 1 ? null : units[ordinal + 1];
73 /** Returns the ordinal value of this time unit, largest is 0. **/
74 public int ordinal() {
75 return ordinal;