Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes
E
G
I
N
O
S
_
E
EmptyList
- Class in
OOscheme
Concrete implementation of the empty list interface, IEmptyList.
EmptyList()
- Constructor for class OOscheme.
EmptyList
emptyCase(IEmptyList, Object...)
- Method in interface OOscheme.
IListAlgo
Operates on
IEmptyList
, the empty list.
emptyCase(IEmptyList, Object...)
- Method in class OOscheme.visitor.
GetLength
Returns Integer(0).
emptyCase(IEmptyList, Object...)
- Method in class OOscheme.visitor.
GetMin
Throws an IllegalArgumentException.
emptyCase(IEmptyList, Object...)
- Method in class OOscheme.visitor.
GetMinHelper
Returns inp[0].
execute(IListAlgo, Object...)
- Method in class OOscheme.
EmptyList
Calls the empty case of the algorithm algo, passing to it itself as the host parameter and the given inp as the input parameter.
execute(IListAlgo, Object...)
- Method in interface OOscheme.
IList
A visitor pattern "hook" method that executes an
IListAlgo
.
execute(IListAlgo, Object...)
- Method in class OOscheme.
NEList
Calls the nonEmptyCase method of the IListAlgo parameter, passing to this method itself as the host parameter and the given input as the input parameter.
G
GetLength
- Class in
OOscheme.visitor
Computes the length of the IList host.
GetLength()
- Constructor for class OOscheme.visitor.
GetLength
GetMin
- Class in
OOscheme.visitor
Assumes the AList host contains Integer, computes the minimum of the all the Integer objects in the host.
GetMin()
- Constructor for class OOscheme.visitor.
GetMin
GetMinHelper
- Class in
OOscheme.visitor
GetMinHelper()
- Constructor for class OOscheme.visitor.
GetMinHelper
getFirst()
- Method in interface OOscheme.
INEList
"Gettor" method for the list's first.
getFirst()
- Method in class OOscheme.
NEList
Returns the first data element of this NEList.
getRest()
- Method in interface OOscheme.
INEList
"Gettor" method for the list's rest.
getRest()
- Method in class OOscheme.
NEList
Returns the rest of this NEList.
I
IEmptyList
- Interface in
OOscheme
Represents the structural behavior of the immutable empty list.
IList
- Interface in
OOscheme
Serves as a host for an algorithm on a list to visit its internal structure.
IListAlgo
- Interface in
OOscheme
Represents an abstract algorithm to be executed by a host IList.
INEList
- Interface in
OOscheme
Represents the structural behavior of an immutable non-empty list.
N
NEList
- Class in
OOscheme
Concrete implementation of the non-empty list interface, INEList.
NEList(Object, IList)
- Constructor for class OOscheme.
NEList
Initializes this NEList to a given first and rest.
nonEmptyCase(INEList, Object...)
- Method in interface OOscheme.
IListAlgo
Operates on
INEList
, a non-empty list.
nonEmptyCase(INEList, Object...)
- Method in class OOscheme.visitor.
GetLength
Return the length of the host's rest plus 1.
nonEmptyCase(INEList, Object...)
- Method in class OOscheme.visitor.
GetMin
Passes the host's data to the host's rest and asks for help to compute the minimum element in the host.
nonEmptyCase(INEList, Object...)
- Method in class OOscheme.visitor.
GetMinHelper
Recurs by passing the mimum between the host's first and inp, the accumulated current minimum.
O
OOscheme
- package OOscheme
OOscheme.visitor
- package OOscheme.visitor
S
Singleton
- Static variable in class OOscheme.
EmptyList
Singleton Design Pattern.
Singleton
- Static variable in class OOscheme.visitor.
GetLength
Singleton Pattern.
Singleton
- Static variable in class OOscheme.visitor.
GetMin
Singleton Pattern.
Singleton
- Static variable in class OOscheme.visitor.
GetMinHelper
Singleton Pattern.
_
_first
- Variable in class OOscheme.
NEList
The first data element of this NEList.
_rest
- Variable in class OOscheme.
NEList
The rest or "tail" of this NEList.
E
G
I
N
O
S
_
Overview
Package
Class
Tree
Deprecated
Index
Help
PREV NEXT
FRAMES
NO FRAMES
All Classes