|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
E
- The Comparable
type of values the constructed expressions
operate on and/or produces.@ParticipantUsage(value="Product", type=Expression.class) @Participant(value="Builder") public interface ComparableExpressionBuilder<E extends Comparable<? super E>>
A comparable expression builder construct various Expression
types having a Comparable
bound on the value produced by
the constructed expressions and/or on the expression operands used.
The constructed root expression can be fetched using
the ExpressionBuilder.getRootExpression()
method, and expressions
can be added to it using the ExpressionBuilder.buildExpression(Expression)
method.
Method Summary | |
---|---|
Expression<Boolean> |
buildGreaterThanExpression(Expression<E> first,
Expression<E> second)
Builds a new GREATER THAN expression. |
Expression<E> |
buildSetExpression(Expression<E> value)
Builds a new SET expression. |
Expression<Boolean> |
buildSmallerThanExpression(Expression<E> first,
Expression<E> second)
Builds a new SMALLER THAN expression. |
Methods inherited from interface dk.rode.thesis.prototype.Copyable |
---|
copy |
Method Detail |
---|
Expression<Boolean> buildGreaterThanExpression(Expression<E> first, Expression<E> second)
first
- The first expression operand; cannot be null.second
- The second expression operand; cannot be null.
NullPointerException
- If either expression is null.Expression<E> buildSetExpression(Expression<E> value)
value
- The expression that will determine the sequence
value to fast-forward to for the sequence
when the constructed expression is
evaluated.
NullPointerException
- If value
is null.Expression<Boolean> buildSmallerThanExpression(Expression<E> first, Expression<E> second)
first
- The first expression operand; cannot be null.second
- The second expression operand; cannot be null.
NullPointerException
- If either expression is null.
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |