public abstract class NumericMessage<T extends Number> extends Message
Message.Type| Modifier and Type | Field and Description |
|---|---|
protected Number |
value |
AGGREGATE_SET, done, HASH_MULTIPLIER| Modifier | Constructor and Description |
|---|---|
protected |
NumericMessage(String aspect,
Message.Type type,
T value,
TagsCardinality cardinality,
String[] tags) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(Message message)
Aggregate message.
|
Number |
getValue()
Get underlying message value.
|
void |
setValue(Number value)
Set underlying message value.
|
protected Number value
protected NumericMessage(String aspect, Message.Type type, T value, TagsCardinality cardinality, String[] tags)
public void aggregate(Message message)
public Number getValue()
public void setValue(Number value)
value - the numeric value for the underlying messageCopyright © 2025. All rights reserved.