private static String getFieldValue ( HollowDiffViewRow row , boolean useFrom ) { Field field = useFrom ? row . getFieldPair ( ) . getFrom ( ) : row . getFieldPair ( ) . getTo ( ) ; if ( row . getFieldPair ( ) . isLeafNode ( ) ) { return field . getValue ( ) == null ? "null" : field . getValue ( ) . toString ( ) . replace ( "|" , "&#x2502" ) ; } else { String suffix = field . getValue ( ) == null ? " [null]" : "" ; return "(" + field . getTypeName ( ) + ")" + suffix ; } }
Returns a String representation of the provided row s field value . If useFrom is true this will use the from value from the pair otherwise this will use the to value .