Changeset 1248

Show
Ignore:
Timestamp:
11/04/08 20:02:49 (4 years ago)
Author:
amandel
Message:

All generated StrongType? classes now implement dedicated Interfaces.

Location:
trunk/src
Files:
4 added
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/xml/xsl/libcommon.xsl

    r1245 r1248  
    713713 */ 
    714714public final class <xsl:value-of select="$classname"/> 
    715       implements Serializable, org.jcoderz.commons.StrongType 
     715      implements Serializable, org.jcoderz.commons.EnumType 
    716716{ 
    717717   /** 
     
    955955 */ 
    956956public final class <xsl:value-of select="$classname"/> 
    957       implements Serializable, org.jcoderz.commons.StrongType, Comparable 
     957      implements Serializable, org.jcoderz.commons.RestrictedString, Comparable 
    958958{ 
    959959   /** 
     
    12111211 */ 
    12121212public final class <xsl:value-of select="$classname"/> 
    1213       implements Serializable, org.jcoderz.commons.StrongType, Comparable 
     1213      implements Serializable, org.jcoderz.commons.RestrictedLong, Comparable 
    12141214{ 
    12151215   /** 
     
    17621762import org.jcoderz.commons.ArgumentMinValueViolationException; 
    17631763import org.jcoderz.commons.ArgumentFractionDigitsViolationException; 
    1764 import org.jcoderz.commons.StrongType; 
     1764import org.jcoderz.commons.FixPointNumber; 
    17651765import org.jcoderz.commons.util.Assert; 
    17661766import org.jcoderz.commons.util.HashCodeUtil; 
     
    17821782public final class <xsl:value-of select="$classname"/> 
    17831783    extends Number 
    1784     implements Comparable, StrongType, Serializable 
     1784    implements Comparable, FixPointNumber, Serializable 
    17851785{ 
    17861786    /** 
     
    20402040    public boolean equals (Object obj) 
    20412041    { 
    2042        return (obj instanceof <xsl:value-of select="$classname"/> 
     2042        return (obj instanceof <xsl:value-of select="$classname"/> 
    20432043             &amp;&amp; ((<xsl:value-of select="$classname"/>) obj).mUnscaled == mUnscaled); 
    20442044    } 
     
    20472047    public int hashCode () 
    20482048    { 
    2049         int hash = HashCodeUtil.SEED; 
    2050         return HashCodeUtil.hash(hash, mUnscaled); 
     2049        return HashCodeUtil.hash(HashCodeUtil.SEED, mUnscaled); 
    20512050    } 
    20522051