Revision 2190 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/CoercionContextDecimal.java

View differences:

CoercionContextDecimal.java
24 24
package org.gvsig.tools.dataTypes;
25 25

  
26 26
import java.math.MathContext;
27
import java.util.Locale;
27 28

  
28 29
/**
29 30
 *
......
31 32
 */
32 33
public interface CoercionContextDecimal extends CoercionContextLocale {
33 34

  
35
  public static CoercionContextDecimal create(Locale locale) {
36
    return new CoercionContextDecimalImpl(locale);
37
  }
38

  
39
  public static CoercionContextDecimal create(int precision, int scale) {
40
    return new CoercionContextDecimalImpl(precision,scale);
41
  }
42

  
43
  public static CoercionContextDecimal create(Locale locale, int precision, int scale) {
44
    return new CoercionContextDecimalImpl(locale, precision,scale);
45
  }
46

  
47
  public static CoercionContextDecimal create(Locale locale, int precision, int scale, int roundMode) {
48
    return new CoercionContextDecimalImpl(locale, precision,scale, roundMode);
49
  }
50

  
34 51
  /**
35 52
   * MathContext used to make a BigDecimal.
36 53
   * Should never return null.

Also available in: Unified diff