edu.rice.comp211.laundry.garment
Class Socks

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

public class Socks
extends Garment

Variant class of Garment union.


Constructor Summary
Socks(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

Socks

public Socks(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