@NotThreadSafe public static final class ImmutableInsightBeanFilter.Builder<T> extends Object
ImmutableInsightBeanFilter.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableInsightBeanFilter<T> |
build()
Builds a new
ImmutableInsightBeanFilter. |
ImmutableInsightBeanFilter.Builder<T> |
from(InsightBeanFilter<T> instance)
Fill a builder with attribute values from the provided
InsightBeanFilter instance. |
ImmutableInsightBeanFilter.Builder<T> |
setPredicate(Predicate<T> predicate)
Initializes the value for the
predicate attribute. |
@CanIgnoreReturnValue public final ImmutableInsightBeanFilter.Builder<T> from(InsightBeanFilter<T> instance)
InsightBeanFilter instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableInsightBeanFilter.Builder<T> setPredicate(Predicate<T> predicate)
predicate attribute.predicate - The value for predicatethis builder for use in a chained invocationpublic ImmutableInsightBeanFilter<T> build()
ImmutableInsightBeanFilter.IllegalStateException - if any required attributes are missingCopyright © 2024 Atlassian. All rights reserved.