Methods Summary |
---|
public boolean | equals(com.samscdrental.model.CDCategory aCDCategory)Indicates whether some other object is "equal to" this one.
return ( theValue == aCDCategory.theValue );
|
public boolean | equals(java.lang.Object obj)
return this.equals( ( CDCategory ) obj );
|
private void | fromString(java.lang.String aString)
for ( int i = 0; i < theStringValues.length; i++ )
{
if ( aString.equals( theStringValues[i] ) )
{
theValue = theCorrespondingValues[i];
return;
}
}
throw new CDCategoryFormatDeviation( ERROR_CD_CATEGORY_VALUE );
|
public static com.samscdrental.model.CDCategory | parseString(java.lang.String aString)
CDCategory aCDCategory = new CDCategory();
aCDCategory.fromString( aString );
return aCDCategory;
|
public java.lang.String | toString()
return theStringValues[theValue];
|