1 package net.sf.saxon.trans; 2 3 import java.io.Serializable ; 4 5 12 public class DecimalSymbols implements Serializable { 13 14 public int decimalSeparator; 15 public int groupingSeparator; 16 public int digit; 17 public int minusSign; 18 public int percent; 19 public int permill; 20 public int zeroDigit; 21 public int patternSeparator; 22 public String infinity; 23 public String NaN; 24 25 26 public boolean equals(Object obj) { 27 if (!(obj instanceof DecimalSymbols)) return false; 28 DecimalSymbols o = (DecimalSymbols)obj; 29 return decimalSeparator == o.decimalSeparator && 30 groupingSeparator == o.groupingSeparator && 31 digit == o.digit && 32 minusSign == o.minusSign && 33 percent == o.percent && 34 permill == o.permill && 35 zeroDigit == o.zeroDigit && 36 patternSeparator == o.patternSeparator && 37 infinity.equals(o.infinity) && 38 NaN.equals(o.NaN); 39 } 40 41 public int hashCode() { 42 return decimalSeparator + (37*groupingSeparator) + (41*digit); 43 } 44 45 } 46 47 65 | Popular Tags |