public final int compareTypeSafe(Value v,CompareMode mode){
  if (this == v) {
    return 0;
  }
 else   if (this == ValueNull.INSTANCE) {
    return -1;
  }
 else   if (v == ValueNull.INSTANCE) {
    return 1;
  }
  return compareSecure(v,mode);
}

public final int compareTypeSafe ( Value v , CompareMode mode ) { if ( this == v ) { return 0 ; } else if ( this == ValueNull . INSTANCE ) { return - 1 ; } else if ( v == ValueNull . INSTANCE ) { return 1 ; } return compareSecure ( v , mode ) ; }
compare this value against another value given that the values are of the same data type .
