|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectlistFW.factory.CompositeListFactory
public class CompositeListFactory
Manufactures concrete IMTList and INEList objects. Has only one instance referenced by CompositeListFactory.Singleton. MTList and NEList are static nested classes and hidden from all external client code. The implementations for MTList and NEList are the same as before but completely invisible to the outside of this factory.
Field Summary | |
---|---|
static CompositeListFactory |
Singleton
Singleton Pattern |
Method Summary | |
---|---|
IMTList |
makeEmptyList()
Creates an empty list. |
INEList |
makeNEList(Object first,
IList tail)
Creates a non-empty list containing a given first and a given rest. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final CompositeListFactory Singleton
Method Detail |
---|
public IMTList makeEmptyList()
makeEmptyList
in interface IListFactory
public INEList makeNEList(Object first, IList tail)
makeNEList
in interface IListFactory
first
- a data object.tail
- != null, the rest of the non-empty list to be manufactured.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |