Methods Summary |
---|
public boolean | equals(com.samscdrental.model.adt.UPCCode aUPCCode)Indicates whether some other object is "equal to" this one.
return aUPCCode.theValue.equals( this.theValue );
|
public boolean | equals(java.lang.Object obj)Indicates whether some other object is "equal to" this one.
return equals( ( UPCCode ) obj );
|
private void | fromString(java.lang.String aString)fromString
if ( aString.length() == LENGTH_OF_VALUE )
{
theValue = aString;
}
else
{
throw new UPCCodeFormatDeviation( ERROR_UPCCODE_BAD_FORMAT );
}
|
public static com.samscdrental.model.adt.UPCCode | parseString(java.lang.String aString)
return new UPCCode( aString );
|
public java.lang.String | toString()Returns a string representation of the object.
return theValue;
|