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 classBuilds 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 aInsightBeanFiltervalue.booleanThis instance is equal to all instances ofImmutableInsightBeanFilterthat have equal attribute values.inthashCode()Computes a hash code from attributes:predicate.toString()Prints the immutable valueInsightBeanFilterwith attribute values.final ImmutableInsightBeanFilter<T>withPredicate(Predicate<T> value) Copy the current immutable object by setting a value for thepredicateattribute.Methods inherited from class io.riada.insight.model.filter.InsightBeanFilter
create, createEmpty
-
Method Details
-
getPredicate
- Specified by:
getPredicatein classInsightBeanFilter<T>- Returns:
- The value of the
predicateattribute
-
withPredicate
Copy the current immutable object by setting a value for thepredicateattribute. 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
thisobject
-
equals
This instance is equal to all instances ofImmutableInsightBeanFilterthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:predicate. -
toString
Prints the immutable valueInsightBeanFilterwith attribute values. -
copyOf
Creates an immutable copy of aInsightBeanFiltervalue. 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>) // requiredpredicate.build();- Type Parameters:
T- generic parameter T- Returns:
- A new ImmutableInsightBeanFilter builder
-