A C E F G H I L M N R S T _

A

algo - Variable in class listFW.test.TestAppend
 
algo - Variable in class listFW.test.TestReverse
 
Append<T> - Class in listFW.visitor
Append another list, passed as input[0], at the end of this list.
Append(IListFactory<T>) - Constructor for class listFW.visitor.Append
 

C

CompositeListFactory<E> - Class in listFW.factory
Manufactures concrete IMTList and INEList objects.
CompositeListFactory() - Constructor for class listFW.factory.CompositeListFactory
 
CopyList<T> - Class in listFW.visitor
Copies an IList using the an IListFactory supplied as an input parameter
CopyList() - Constructor for class listFW.visitor.CopyList
 
CopyList2<T> - Class in listFW.visitor
Copies an IList using the supplied IListFactory
CopyList2(IListFactory<T>) - Constructor for class listFW.visitor.CopyList2
 
CopyList3<T> - Class in listFW.visitor
Copies an IList using the an IListFactory supplied as an input parameter
CopyList3() - Constructor for class listFW.visitor.CopyList3
 

E

emptyCase(IMTList<? extends E>, P...) - Method in interface listFW.IListAlgo
 
emptyCase(IMTList<? extends T>, IList<T>...) - Method in class listFW.visitor.Append
Returns the input list.
emptyCase(IMTList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.CopyList
 
emptyCase(IMTList<? extends T>, Void...) - Method in class listFW.visitor.CopyList2
 
emptyCase(IMTList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.CopyList3
 
emptyCase(IMTList<? extends T>, P...) - Method in class listFW.visitor.FoldL
Empty case.
emptyCase(IMTList<? extends T>, P...) - Method in class listFW.visitor.FoldR
Empty case.
emptyCase(IMTList<? extends String>, String...) - Method in class listFW.visitor.MakePhrase
 
emptyCase(IMTList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.Reverse
Returns the empty list.
emptyCase(IMTList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.ReverseList
 
emptyCase(IMTList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.ReverseList2
 
emptyCase(IMTList<? extends Object>, IListFactory<?>...) - Method in class listFW.visitor.ReverseList3
 
emptyCase(IMTList<? extends Integer>, Object...) - Method in class listFW.visitor.SumIntList
 
emptyCase(IMTList<? extends Integer>, Object...) - Method in class listFW.visitor.SumIntList_Fwd
 
emptyCase(IMTList<? extends Number>, Object...) - Method in class listFW.visitor.SumIntValList
 
emptyCase(IMTList<? extends Number>, Object...) - Method in class listFW.visitor.SumNumList
 
emptyCase(IMTList<? extends Object>, Object...) - Method in class listFW.visitor.ToStringAlgo
Returns "()".
emptyCase(IMTList<? extends Object>, String...) - Method in class listFW.visitor.ToStringHelper
Returns the accumulated String + ")".
execute(IListAlgo<? super E, R, P>, P...) - Method in interface listFW.IList
A visitor pattern "hook" method that executes an IListAlgo.

F

f - Variable in class listFW.test.TestAppend
 
f - Variable in class listFW.test.TestReverse
 
fac - Variable in class listFW.test.TestAppend
 
fac - Variable in class listFW.test.TestReverse
 
fac - Variable in class listFW.visitor.CopyList2
 
FoldL<T,P> - Class in listFW.visitor
Folds a list, starting at the left side.
FoldL(<any>) - Constructor for class listFW.visitor.FoldL
Constructor for a FoldL algorithm.
FoldR<T,P> - Class in listFW.visitor
Folds a list, starting at the right side.
FoldR(<any>) - Constructor for class listFW.visitor.FoldR
Constructor for a FoldR algorithm.

G

getFirst() - Method in interface listFW.INEList
"Gettor" method for the list's first.
getRest() - Method in interface listFW.INEList
"Gettor" method for the list's rest.

H

helper - Variable in class listFW.visitor.SumIntList_Fwd
 

I

IList<E> - Interface in listFW
Defines an immutable list that holds elements of type E.
IListAlgo<E,R,P> - Interface in listFW
A visitor to (algorithm on) an IList where T is a subclass of E Also parameterized by it return type R and parameter type T.
IListFactory<E> - Interface in listFW
Abstract factory to manufacture IEmptyList and INEList.
IMTList<E> - Interface in listFW
Represents the structural behavior of the immutable empty list.
INEList<E> - Interface in listFW
Represents the structural behavior of an immutable non-empty list that holds elements of type E.

L

listFW - package listFW
 
listFW.factory - package listFW.factory
 
listFW.test - package listFW.test
 
listFW.visitor - package listFW.visitor
 

M

makeEmptyList() - Method in class listFW.factory.CompositeListFactory
Creates an empty list.
makeEmptyList() - Method in interface listFW.IListFactory
Creates an empty list.
makeNEList(E, IList<? extends E>) - Method in class listFW.factory.CompositeListFactory
Creates a non-empty list containing a given first and a given rest.
makeNEList(E, IList<? extends E>) - Method in interface listFW.IListFactory
Creates a non-empty list containing a given first and a given rest.
MakePhrase - Class in listFW.visitor
A test algorithm that works on a list of strings, combining the elements into a single String.
MakePhrase() - Constructor for class listFW.visitor.MakePhrase
 
mt - Variable in class listFW.test.TestAppend
 
mt - Variable in class listFW.test.TestReverse
 
mtList - Variable in class listFW.factory.CompositeListFactory
Note: A parametrized IMTList(E> cannot be static.

N

ne1 - Variable in class listFW.test.TestAppend
 
ne2 - Variable in class listFW.test.TestAppend
 
nonEmptyCase(INEList<? extends E>, P...) - Method in interface listFW.IListAlgo
 
nonEmptyCase(INEList<? extends T>, IList<T>...) - Method in class listFW.visitor.Append
Returns the appended lists.
nonEmptyCase(INEList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.CopyList
 
nonEmptyCase(INEList<? extends T>, Void...) - Method in class listFW.visitor.CopyList2
 
nonEmptyCase(INEList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.CopyList3
 
nonEmptyCase(INEList<? extends T>, P...) - Method in class listFW.visitor.FoldL
Non-empty case.
nonEmptyCase(INEList<? extends T>, P...) - Method in class listFW.visitor.FoldR
Non-empty case.
nonEmptyCase(INEList<? extends String>, String...) - Method in class listFW.visitor.MakePhrase
 
nonEmptyCase(INEList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.Reverse
Returns the reversed list.
nonEmptyCase(INEList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.ReverseList
 
nonEmptyCase(INEList<? extends T>, IListFactory<T>...) - Method in class listFW.visitor.ReverseList2
 
nonEmptyCase(INEList<? extends Object>, IListFactory<?>...) - Method in class listFW.visitor.ReverseList3
 
nonEmptyCase(INEList<? extends Integer>, Object...) - Method in class listFW.visitor.SumIntList
 
nonEmptyCase(INEList<? extends Integer>, Object...) - Method in class listFW.visitor.SumIntList_Fwd
 
nonEmptyCase(INEList<? extends Number>, Object...) - Method in class listFW.visitor.SumIntValList
 
nonEmptyCase(INEList<? extends Number>, Object...) - Method in class listFW.visitor.SumNumList
 
nonEmptyCase(INEList<? extends Object>, Object...) - Method in class listFW.visitor.ToStringAlgo
Passes "(" + first to the rest of IList and asks for help to complete the computation.
nonEmptyCase(INEList<? extends Object>, String...) - Method in class listFW.visitor.ToStringHelper
Continues accumulating the String representation by appending ", " + first to acc and recur!

R

Reverse<T> - Class in listFW.visitor
Reverses a list.
Reverse() - Constructor for class listFW.visitor.Reverse
 
ReverseList<T> - Class in listFW.visitor
Reverses a particular kind of list only
ReverseList() - Constructor for class listFW.visitor.ReverseList
 
ReverseList2<T> - Class in listFW.visitor
Reverses a particular kind of list only, but with reduced type safety due to delegating to host instead of rest.
ReverseList2() - Constructor for class listFW.visitor.ReverseList2
 
ReverseList3 - Class in listFW.visitor
Attempt to reverse any kind of list, but requires that the factory match the list Could have serious problems at run-time due to type erasure
ReverseList3() - Constructor for class listFW.visitor.ReverseList3
 

S

s - Variable in class listFW.test.Test_NewList.TestClass
 
Singleton - Static variable in class listFW.visitor.MakePhrase
 
Singleton - Static variable in class listFW.visitor.ToStringAlgo
 
Singleton - Static variable in class listFW.visitor.ToStringHelper
 
SumIntList - Class in listFW.visitor
Sums a IList using a reverse accumulation (natural recursion) algorithm.
SumIntList() - Constructor for class listFW.visitor.SumIntList
 
SumIntList_Fwd - Class in listFW.visitor
Sums a IList using a forward accumulation algorithm.
SumIntList_Fwd() - Constructor for class listFW.visitor.SumIntList_Fwd
 
SumIntValList - Class in listFW.visitor
Sums a list of Numbers, but only the integer part of the values.
SumIntValList() - Constructor for class listFW.visitor.SumIntValList
 
SumNumList - Class in listFW.visitor
Sums a list of Numbers, including lists of any sub-types.
SumNumList() - Constructor for class listFW.visitor.SumNumList
 

T

test_CopyList() - Method in class listFW.test.Test_NewList
Test copying the list using a copy visitor that takes the factory as its input parameter.
test_CopyList2() - Method in class listFW.test.Test_NewList
Test copying the list using a copy visitor that takes the factory in its constructor and thus does not use its parameter.
test_CopyList3() - Method in class listFW.test.Test_NewList
Test copying the list using a copy visitor that takes the factory as a parameter
test_factory() - Method in class listFW.test.Test_NewList
Test the parameterized list factory
test_MakePhrase() - Method in class listFW.test.Test_NewList
Test a more complex visitor that uses an input parameter that is not itself parameterized.
Test_NewList - Class in listFW.test
A JUnit test case class.
Test_NewList() - Constructor for class listFW.test.Test_NewList
 
Test_NewList.TestClass - Class in listFW.test
Custom class used by the test_ToStringAlgo test
Test_NewList.TestClass(String) - Constructor for class listFW.test.Test_NewList.TestClass
 
test_ReverseList() - Method in class listFW.test.Test_NewList
 
test_ReverseList2() - Method in class listFW.test.Test_NewList
 
test_ReverseList3() - Method in class listFW.test.Test_NewList
 
test_SumIntList() - Method in class listFW.test.Test_NewList
Test the summing of a list of integers
test_SumIntList_Fwd() - Method in class listFW.test.Test_NewList
Test a forward accumulation algorithm which is an algorithm that takes an unparameterized input value.
test_SumIntValList() - Method in class listFW.test.Test_NewList
Test the summing of the integer part of a list of numbers.
test_SumNumList() - Method in class listFW.test.Test_NewList
Test the summing of a list of numbers, which should work on a list of integers or a list of doubles.
test_toString() - Method in class listFW.test.Test_NewList
Test the internal toString() method of a list
test_ToStringAlgo() - Method in class listFW.test.Test_NewList
Tests the universality of the ToStringAlgo visitor.
TestAppend - Class in listFW.test
Testing appending a list.
TestAppend() - Constructor for class listFW.test.TestAppend
 
testEmpty() - Method in class listFW.test.TestAppend
 
testEmpty() - Method in class listFW.test.TestReverse
 
testEmptyNE() - Method in class listFW.test.TestAppend
 
testFoldEmpty() - Method in class listFW.test.TestAppend
 
testFoldEmpty() - Method in class listFW.test.TestReverse
 
testFoldEmptyNE() - Method in class listFW.test.TestAppend
 
testFoldNEEmpty() - Method in class listFW.test.TestAppend
 
testFoldNENE() - Method in class listFW.test.TestAppend
 
testFoldNonEmpty() - Method in class listFW.test.TestReverse
 
testNEEmpty() - Method in class listFW.test.TestAppend
 
testNENE() - Method in class listFW.test.TestAppend
 
testNonEmpty() - Method in class listFW.test.TestReverse
 
TestReverse - Class in listFW.test
Testing reversing a list.
TestReverse() - Constructor for class listFW.test.TestReverse
 
toString() - Method in class listFW.test.Test_NewList.TestClass
 
toStringAlgo - Static variable in class listFW.factory.CompositeListFactory
 
ToStringAlgo - Class in listFW.visitor
Computes a String reprsentation of IList showing a left parenthesis followed by elements of the IList separated by commas, ending with with a right parenthesis.
ToStringAlgo() - Constructor for class listFW.visitor.ToStringAlgo
 
ToStringHelper - Class in listFW.visitor
Helps ToStringAlgo compute the String representation of the rest of the list.
ToStringHelper() - Constructor for class listFW.visitor.ToStringHelper
 

_

_f - Variable in class listFW.visitor.FoldL
 
_f - Variable in class listFW.visitor.FoldR
 
_fac - Variable in class listFW.visitor.Append
 

A C E F G H I L M N R S T _