Changeset 1248
- Timestamp:
- 11/04/08 20:02:49 (4 years ago)
- Location:
- trunk/src
- Files:
-
- 4 added
- 1 modified
-
java/org/jcoderz/commons/EnumType.java (added)
-
java/org/jcoderz/commons/FixPointNumber.java (added)
-
java/org/jcoderz/commons/RestrictedLong.java (added)
-
java/org/jcoderz/commons/RestrictedString.java (added)
-
xml/xsl/libcommon.xsl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/xml/xsl/libcommon.xsl
r1245 r1248 713 713 */ 714 714 public final class <xsl:value-of select="$classname"/> 715 implements Serializable, org.jcoderz.commons. StrongType715 implements Serializable, org.jcoderz.commons.EnumType 716 716 { 717 717 /** … … 955 955 */ 956 956 public final class <xsl:value-of select="$classname"/> 957 implements Serializable, org.jcoderz.commons. StrongType, Comparable957 implements Serializable, org.jcoderz.commons.RestrictedString, Comparable 958 958 { 959 959 /** … … 1211 1211 */ 1212 1212 public final class <xsl:value-of select="$classname"/> 1213 implements Serializable, org.jcoderz.commons. StrongType, Comparable1213 implements Serializable, org.jcoderz.commons.RestrictedLong, Comparable 1214 1214 { 1215 1215 /** … … 1762 1762 import org.jcoderz.commons.ArgumentMinValueViolationException; 1763 1763 import org.jcoderz.commons.ArgumentFractionDigitsViolationException; 1764 import org.jcoderz.commons. StrongType;1764 import org.jcoderz.commons.FixPointNumber; 1765 1765 import org.jcoderz.commons.util.Assert; 1766 1766 import org.jcoderz.commons.util.HashCodeUtil; … … 1782 1782 public final class <xsl:value-of select="$classname"/> 1783 1783 extends Number 1784 implements Comparable, StrongType, Serializable1784 implements Comparable, FixPointNumber, Serializable 1785 1785 { 1786 1786 /** … … 2040 2040 public boolean equals (Object obj) 2041 2041 { 2042 return (obj instanceof <xsl:value-of select="$classname"/>2042 return (obj instanceof <xsl:value-of select="$classname"/> 2043 2043 && ((<xsl:value-of select="$classname"/>) obj).mUnscaled == mUnscaled); 2044 2044 } … … 2047 2047 public int hashCode () 2048 2048 { 2049 int hash = HashCodeUtil.SEED; 2050 return HashCodeUtil.hash(hash, mUnscaled); 2049 return HashCodeUtil.hash(HashCodeUtil.SEED, mUnscaled); 2051 2050 } 2052 2051
