|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.comp211.laundry.garment.Garment
public abstract class Garment
Root class of the Garment union. Represents an abstract garment.
Constructor Summary | |
---|---|
protected |
Garment(String pAdjective)
|
Method Summary | ||
---|---|---|
abstract
|
accept(GarmentVisitor<R> v)
Executes ("accepts") a visitor for this garment |
|
String |
adjective()
Accessor for the adjective |
|
boolean |
equals(Object elt)
Returns true if to Garments are the same class and have the same adjective string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected Garment(String pAdjective)
Method Detail |
---|
public String adjective()
public abstract <R> R accept(GarmentVisitor<R> v)
R
- The return type of the visitor (determined by the visitor being used)v
- The visitor to accept
public boolean equals(Object elt)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |