public class AggregatorFirstEver extends java.lang.Object implements AggregationMethod
Constructor and Description |
---|
AggregatorFirstEver(java.lang.Class type)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clear out the collection.
|
void |
enter(java.lang.Object object)
Apply the value as entering aggregation (entering window).
|
java.lang.Object |
getFirstValue() |
java.lang.Object |
getValue()
Returns the current value held.
|
java.lang.Class |
getValueType()
Returns the type of the current value.
|
boolean |
isSet() |
void |
leave(java.lang.Object object)
Apply the value as leaving aggregation (leaving window).
|
void |
setFirstValue(java.lang.Object firstValue) |
void |
setSet(boolean set) |
public AggregatorFirstEver(java.lang.Class type)
type
- type of value returnedpublic void clear()
AggregationMethod
clear
in interface AggregationMethod
public void enter(java.lang.Object object)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
enter
in interface AggregationMethod
object
- to add to aggregatepublic void leave(java.lang.Object object)
AggregationMethod
The value can be null since 'null' values may be counted as unique separate values.
leave
in interface AggregationMethod
object
- to remove from aggregatepublic java.lang.Object getValue()
AggregationMethod
getValue
in interface AggregationMethod
public java.lang.Class getValueType()
AggregationMethod
getValueType
in interface AggregationMethod
public boolean isSet()
public void setSet(boolean set)
public java.lang.Object getFirstValue()
public void setFirstValue(java.lang.Object firstValue)