private void checkIsValidCalendarField(int calField) {
		switch (calField) {
			case Calendar.DAY_OF_MONTH:
			case Calendar.MONTH:
			case Calendar.YEAR:
				return;
			default:
				throw new IllegalArgumentException("invalid calendarField");
		}
	}
Specifies whether the increment/decrement methods should adjust the year, month, or day.

@param calendarField one of
 <ul>
   <li>{@link Calendar#YEAR}</li>
   <li>{@link Calendar#MONTH}</li>
   <li>{@link Calendar#DAY_OF_MONTH}</li>
 </ul>
Ghidra/Framework/Docking/src/main/java/docking/widgets/table/constrainteditor/LocalDateSpinnerModel.java