quick test to see if all parts of the instance are equal : features and labels . see the comment above iscorrect for more information . concode_field_sep Instance actual concode_elem_sep Instance expected concode_elem_sep double epsilon concode_field_sep void setEpsilon concode_elem_sep int compare concode_elem_sep int size concode_elem_sep boolean isLabelCorrect concode_elem_sep boolean isCorrect
boolean function ( ) { for ( int loc0 = 0 ; loc0 < size ( ) ; loc0 ++ ) { if ( ! isCorrect ( loc0 ) ) { return false ; } } for ( int loc0 = 0 ; loc0 < expected . getLabel ( ) . size ( ) ; loc0 ++ ) { if ( ! isLabelCorrect ( loc0 ) ) { return false ; } } return true ; }