example.fruit.oldskool
Class AppleBuilder
java.lang.Object
example.fruit.oldskool.AppleBuilder
- All Implemented Interfaces:
- Builder<Apple>
public class AppleBuilder
- extends Object
- implements Builder<Apple>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.