public static boolean isNotSet(double value){
  return Double.isInfinite(value) || (Math.abs(value) < 0.001);
}

public static boolean isNotSet ( double value ) { return Double . isInfinite ( value ) || ( Math . abs ( value ) < 0.001 ) ; }
checks if double value is not set .
