@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableMessageFilter extends Object implements MessageFilter
MessageFilter.
Use the builder to create immutable instances:
ImmutableMessageFilter.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableMessageFilter.Builder
Builds instances of type
ImmutableMessageFilter. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableMessageFilter.Builder |
builder()
Creates a builder for
ImmutableMessageFilter. |
static ImmutableMessageFilter |
copyOf(MessageFilter instance)
Creates an immutable copy of a
MessageFilter value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableMessageFilter that have equal attribute values. |
Optional<LocalDateTime> |
from() |
int |
hashCode()
Computes a hash code from attributes:
topic, key, valuePattern, from, keyFormat, messageFormat. |
String |
key() |
org.jresearch.gavka.domain.KeyFormat |
keyFormat() |
org.jresearch.gavka.domain.MessageFormat |
messageFormat() |
String |
topic() |
String |
toString()
Prints the immutable value
MessageFilter with attribute values. |
String |
valuePattern() |
ImmutableMessageFilter |
withFrom(LocalDateTime value)
Copy the current immutable object by setting a present value for the optional
from attribute. |
ImmutableMessageFilter |
withFrom(Optional<? extends LocalDateTime> optional)
Copy the current immutable object by setting an optional value for the
from attribute. |
ImmutableMessageFilter |
withKey(String value)
Copy the current immutable object by setting a value for the
key attribute. |
ImmutableMessageFilter |
withKeyFormat(org.jresearch.gavka.domain.KeyFormat value)
Copy the current immutable object by setting a value for the
keyFormat attribute. |
ImmutableMessageFilter |
withMessageFormat(org.jresearch.gavka.domain.MessageFormat value)
Copy the current immutable object by setting a value for the
messageFormat attribute. |
ImmutableMessageFilter |
withTopic(String value)
Copy the current immutable object by setting a value for the
topic attribute. |
ImmutableMessageFilter |
withValuePattern(String value)
Copy the current immutable object by setting a value for the
valuePattern attribute. |
public String topic()
topic in interface MessageFiltertopic attributepublic String key()
key in interface MessageFilterkey attributepublic String valuePattern()
valuePattern in interface MessageFiltervaluePattern attributepublic Optional<LocalDateTime> from()
from in interface MessageFilterfrom attributepublic org.jresearch.gavka.domain.KeyFormat keyFormat()
keyFormat in interface MessageFilterkeyFormat attributepublic org.jresearch.gavka.domain.MessageFormat messageFormat()
messageFormat in interface MessageFiltermessageFormat attributepublic final ImmutableMessageFilter withTopic(String value)
topic attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for topicthis objectpublic final ImmutableMessageFilter withKey(String value)
key attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for keythis objectpublic final ImmutableMessageFilter withValuePattern(String value)
valuePattern attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for valuePatternthis objectpublic final ImmutableMessageFilter withFrom(LocalDateTime value)
from attribute.value - The value for fromthis objectpublic final ImmutableMessageFilter withFrom(Optional<? extends LocalDateTime> optional)
from attribute.
A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.optional - A value for fromthis objectpublic final ImmutableMessageFilter withKeyFormat(org.jresearch.gavka.domain.KeyFormat value)
keyFormat attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for keyFormatthis objectpublic final ImmutableMessageFilter withMessageFormat(org.jresearch.gavka.domain.MessageFormat value)
messageFormat attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for messageFormatthis objectpublic boolean equals(@Nullable Object another)
ImmutableMessageFilter that have equal attribute values.public int hashCode()
topic, key, valuePattern, from, keyFormat, messageFormat.public String toString()
MessageFilter with attribute values.public static ImmutableMessageFilter copyOf(MessageFilter instance)
MessageFilter value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableMessageFilter.Builder builder()
ImmutableMessageFilter.
ImmutableMessageFilter.builder()
.topic(String) // required topic
.key(String) // required key
.valuePattern(String) // required valuePattern
.from(java.time.LocalDateTime) // optional from
.keyFormat(org.jresearch.gavka.domain.KeyFormat) // required keyFormat
.messageFormat(org.jresearch.gavka.domain.MessageFormat) // required messageFormat
.build();
Copyright © 2019. All rights reserved.