public static SparseGradient createConstant(final double value){
  return new SparseGradient(value,Collections.<Integer,Double>emptyMap());
}

public static SparseGradient createConstant ( final double value ) { return new SparseGradient ( value , Collections . < Integer , Double > emptyMap ( ) ) ; }
factory method creating a constant .
