MessageCondition that delegates to other message conditions.
For combine and compareTo it is expected that the "other"
composite contains the same number, type, and order of message conditions.
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public CompositeMessageCondition | combine(CompositeMessageCondition
the condition to combine with other)Implements org. Define the rules for combining this condition with another. |
| private <T extends MessageCondition | |
| private <T extends MessageCondition | |
| public int | compareTo(CompositeMessageCondition other, Message<?> message)
Implements org. Compare this condition to another in the context of a specific message. |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public <T extends MessageCondition | |
| public CompositeMessageCondition | getMatchingCondition(Message<?> message)
Implements org. Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message. |
| public List | |
| public int | |
| public String |
| messageConditions | back to summary |
|---|---|
| private final List<MessageCondition<?>> messageConditions | |
| CompositeMessageCondition | back to summary |
|---|---|
| public CompositeMessageCondition(MessageCondition<?>... messageConditions) | |
| CompositeMessageCondition | back to summary |
|---|---|
| private CompositeMessageCondition(List<MessageCondition<?>> messageConditions) | |
| checkCompatible | back to summary |
|---|---|
| private void checkCompatible(CompositeMessageCondition other) | |
| combine | back to summary |
|---|---|
| public CompositeMessageCondition combine(CompositeMessageCondition other) Implements org. Doc from org. Define the rules for combining this condition with another. For example combining type- and method-level conditions.
| |
| combine | back to summary |
|---|---|
private <T extends MessageCondition
| |
| compare | back to summary |
|---|---|
private <T extends MessageCondition
| |
| compareTo | back to summary |
|---|---|
| public int compareTo(CompositeMessageCondition other, Message<?> message) Implements org. Doc from org. Compare this condition to another in the context of a specific message.
It is assumed both instances have been obtained via
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getCondition | back to summary |
|---|---|
public <T extends MessageCondition
| |
| getMatchingCondition | back to summary |
|---|---|
| public CompositeMessageCondition getMatchingCondition(Message<?> message) Implements org. Doc from org. Check if this condition matches the given Message and returns a potentially new condition with content tailored to the current message. For example a condition with destination patterns might return a new condition with sorted, matching patterns only.
| |
| getMessageConditions | back to summary |
|---|---|
| public List | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |