public static int compare(boolean left,double right){
  return compare(left ? 1d : 0d,right);
}

public static int compare ( boolean left , double right ) { return compare ( left ? 1d : 0d , right ) ; }
compares a boolean with a double
