public boolean isSupported ( DurationFieldType type ) { if ( type == null ) { return false ; } DurationField field = type . getField ( getChronology ( ) ) ; if ( DATE_DURATION_TYPES . contains ( type ) || field . getUnitMillis ( ) >= getChronology ( ) . days ( ) . getUnitMillis ( ) ) { return field . isSupported ( ) ; } return false ; }
Checks if the duration type specified is supported by this local date and chronology .