Home
last modified time | relevance | path

Searched refs:calendarField (Results 1 – 2 of 2) sorted by relevance

/libcore/luni/src/main/java/java/text/
DDateFormat.java792 private int calendarField = -1; field in DateFormat.Field
803 protected Field(String fieldName, int calendarField) { in Field() argument
805 this.calendarField = calendarField; in Field()
806 if (calendarField != -1 && table.get(Integer.valueOf(calendarField)) == null) { in Field()
807 table.put(Integer.valueOf(calendarField), this); in Field()
817 return calendarField; in getCalendarField()
832 public static Field ofCalendarField(int calendarField) { in ofCalendarField() argument
833 if (calendarField < 0 || calendarField >= Calendar.FIELD_COUNT) { in ofCalendarField()
834 throw new IllegalArgumentException("Field out of range: " + calendarField); in ofCalendarField()
836 return table.get(Integer.valueOf(calendarField)); in ofCalendarField()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DDataFormatFieldTest.java57 protected MyField(String fieldName, int calendarField) { in MyField() argument
58 super(fieldName, calendarField); in MyField()