edu.rice.comp211.laundry.garment
Class Shirt

java.lang.Object
  extended by edu.rice.comp211.laundry.garment.Garment
      extended by edu.rice.comp211.laundry.garment.Shirt

public class Shirt
extends Garment

Variant class of Garment union.


Constructor Summary
Shirt(String a)
           
 
Method Summary
<R> R
accept(GarmentVisitor<R> v)
          Executes ("accepts") a visitor for this garment
 String toString()
           
 
Methods inherited from class edu.rice.comp211.laundry.garment.Garment
adjective, equals
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Shirt

public Shirt(String a)
Method Detail

accept

public <R> R accept(GarmentVisitor<R> v)
Description copied from class: Garment
Executes ("accepts") a visitor for this garment

Specified by:
accept in class Garment
Type Parameters:
R - The return type of the visitor (determined by the visitor being used)
Parameters:
v - The visitor to accept
Returns:
The return value of the visitor

toString

public String toString()
Overrides:
toString in class Object