Searched defs:ordinal (Results 1 - 3 of 3) sorted by relevance

/libcore/ojluni/src/main/java/java/lang/
H A DEnum.java86 * The ordinal of this enumeration constant (its position
88 * an ordinal of zero).
94 private final int ordinal; field in class:Enum
97 * Returns the ordinal of this enumeration constant (its position
99 * an ordinal of zero).
105 * @return the ordinal of this enumeration constant
107 public final int ordinal() { method in class:Enum
108 return ordinal;
118 * @param ordinal - The ordinal o
122 Enum(String name, int ordinal) argument
[all...]
/libcore/ojluni/src/main/java/java/time/temporal/
H A DTemporalAdjusters.java316 * in the same month with the ordinal day-of-week.
330 * For a positive or zero ordinal, the algorithm is equivalent to finding the first
332 * For a negative ordinal, the algorithm is equivalent to finding the last
334 * The ordinal number of weeks is not validated and is interpreted leniently
335 * according to this algorithm. This definition means that an ordinal of zero finds
342 * @param ordinal the week within the month, unbounded but typically from -5 to 5
346 public static TemporalAdjuster dayOfWeekInMonth(int ordinal, DayOfWeek dayOfWeek) { argument
349 if (ordinal >= 0) {
354 dowDiff += (ordinal - 1L) * 7L; // safe from overflow
363 daysDiff -= (-ordinal
[all...]
/libcore/ojluni/src/main/java/java/time/chrono/
H A DJapaneseEra.java182 return ERA_CONFIG[ordinal(eraValue)];
201 return KNOWN_ERAS[ordinal(japaneseEra)];
285 private static int ordinal(int eraValue) { method in class:JapaneseEra
340 int index = ordinal(getValue());
348 return ERA_CONFIG[ordinal(getValue())].getName();

Completed in 155 milliseconds