example.fruit.oldskool
Class AppleBuilder

java.lang.Object
  extended by example.fruit.oldskool.AppleBuilder
All Implemented Interfaces:
Builder<Apple>

public class AppleBuilder
extends Object
implements Builder<Apple>


Method Summary
static AppleBuilder anApple()
           
 Apple build()
           
 AppleBuilder but()
           
 AppleBuilder withLeaves(int leaves)
           
 AppleBuilder withRipeness(double ripeness)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

anApple

public static AppleBuilder anApple()

build

public Apple build()
Specified by:
build in interface Builder<Apple>

withRipeness

public AppleBuilder withRipeness(double ripeness)

withLeaves

public AppleBuilder withLeaves(int leaves)

but

public AppleBuilder but()


Copyright © 2010. All Rights Reserved.