@ SuppressWarnings ( "unchecked" ) private boolean isFieldPopulated ( Task task , TaskField field ) { boolean result = false ; if ( field != null ) { Object value = task . getCachedValue ( field ) ; switch ( field ) { case PREDECESSORS : case SUCCESSORS : { result = value != null && ! ( ( List < Relation > ) value ) . isEmpty ( ) ; break ; } default : { result = value != null ; break ; } } } return result ; }
Determine if a task field contains data .