static boolean equal(Object v1,Object v2){
  v1=maybeConvertToString(v1);
  v2=maybeConvertToString(v2);
  return Objects.equals(v1,v2);
}

static boolean equal ( Object v1 , Object v2 ) { v1 = maybeConvertToString ( v1 ) ; v2 = maybeConvertToString ( v2 ) ; return Objects . equals ( v1 , v2 ) ; }
determines equality between two values , converting docs to strings as needed .
