public class IlvMaxOperator extends IlvCommutativeAssociativeOperator
| Constructor and Description |
|---|
IlvMaxOperator()
Creates a new instance of this maximizing operator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(IlvModelWithColumns model,
IlvDataColumnInfo column,
Comparator comparator)
Attaches this operator to a given model and column.
|
void |
attach(IlvTreeModelWithColumns model,
TreePath branchRootPath,
IlvDataColumnInfo column,
Comparator comparator)
Attaches this operator to a given tree model branch and column.
|
protected Object |
combine(Object value1,
Object value2)
Returns the value of the operator, when applied to two operator results.
|
void |
detach()
Detaches this operator from its model and thus deactivates it.
|
protected boolean |
equalValues(Object value1,
Object value2)
Returns
true if two values are to be considered the same. |
protected Object |
identity(Object value)
Returns the value of the operator, when applied to a single argument.
|
protected Object |
neutralValue()
Returns the value of the operator, when applied to zero arguments.
|
attach, attach, getOperatorValueaddOperatorListener, fireEvent, removeOperatorListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddOperatorListener, removeOperatorListenerpublic IlvMaxOperator()
protected Object neutralValue()
neutralValue in class IlvCommutativeAssociativeOperatorprotected Object identity(Object value)
identity in class IlvCommutativeAssociativeOperatorprotected Object combine(Object value1, Object value2)
combine in class IlvCommutativeAssociativeOperatorprotected boolean equalValues(Object value1, Object value2)
true if two values are to be considered the same.equalValues in class IlvCommutativeAssociativeOperatorpublic void attach(IlvModelWithColumns model, IlvDataColumnInfo column, Comparator comparator)
model - The model containing the column values.column - The column whose values shall be used.comparator - The comparator for comparing column values, or
null which denotes a default comparator.public void attach(IlvTreeModelWithColumns model, TreePath branchRootPath, IlvDataColumnInfo column, Comparator comparator)
model - The model containing the column values.branchRootPath - The tree path from the root of the model to the root of
the branch onto which to limit the scope of the
operation. The branch root must stay in the model as
long as this operator is attached.column - The column whose values shall be used.comparator - The comparator for comparing column values, or
null which denotes a default comparator.public void detach()
detach in interface IlvOperatordetach in class IlvCommutativeAssociativeOperator© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.