Package io.riada.insight.model.filter
Class ImmutableInsightBeanFilter<T>
java.lang.Object
io.riada.insight.model.filter.InsightBeanFilter<T>
io.riada.insight.model.filter.ImmutableInsightBeanFilter<T>
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
@CheckReturnValue
public final class ImmutableInsightBeanFilter<T>
extends InsightBeanFilter<T>
Immutable implementation of
InsightBeanFilter
.
Use the builder to create immutable instances:
ImmutableInsightBeanFilter.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableInsightBeanFilter
. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ImmutableInsightBeanFilter.Builder<T>
builder()
Creates a builder forImmutableInsightBeanFilter
.static <T> ImmutableInsightBeanFilter<T>
copyOf
(InsightBeanFilter<T> instance) Creates an immutable copy of aInsightBeanFilter
value.boolean
This instance is equal to all instances ofImmutableInsightBeanFilter
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:predicate
.toString()
Prints the immutable valueInsightBeanFilter
with attribute values.final ImmutableInsightBeanFilter<T>
withPredicate
(Predicate<T> value) Copy the current immutable object by setting a value for thepredicate
attribute.Methods inherited from class io.riada.insight.model.filter.InsightBeanFilter
create, createEmpty
-
Method Details
-
getPredicate
- Specified by:
getPredicate
in classInsightBeanFilter<T>
- Returns:
- The value of the
predicate
attribute
-
withPredicate
Copy the current immutable object by setting a value for thepredicate
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for predicate- Returns:
- A modified copy of the
this
object
-
equals
This instance is equal to all instances ofImmutableInsightBeanFilter
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:predicate
. -
toString
Prints the immutable valueInsightBeanFilter
with attribute values. -
copyOf
Creates an immutable copy of aInsightBeanFilter
value. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Type Parameters:
T
- generic parameter T- Parameters:
instance
- The instance to copy- Returns:
- A copied immutable InsightBeanFilter instance
-
builder
Creates a builder forImmutableInsightBeanFilter
.ImmutableInsightBeanFilter.<T>builder() .setPredicate(function.Predicate<T>) // required
predicate
.build();- Type Parameters:
T
- generic parameter T- Returns:
- A new ImmutableInsightBeanFilter builder
-