public static final class ImmutableTypedListener.Builder extends Object implements Listener.TypedListener.Builder
ImmutableTypedListener.
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.
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonStateReached, onStateTearDownpublic final ImmutableTypedListener.Builder from(Listener.TypedListener instance)
TypedListener instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableTypedListener.Builder addStateReachedListener(Listener.StateListener<?> element)
stateReachedListener list.addStateReachedListener in interface Listener.TypedListener.Builderelement - A stateReachedListener elementthis builder for use in a chained invocation@SafeVarargs public final ImmutableTypedListener.Builder addStateReachedListener(Listener.StateListener<?>... elements)
stateReachedListener list.elements - An array of stateReachedListener elementsthis builder for use in a chained invocationpublic final ImmutableTypedListener.Builder stateReachedListener(Iterable<? extends Listener.StateListener<?>> elements)
stateReachedListener list.elements - An iterable of stateReachedListener elementsthis builder for use in a chained invocationpublic final ImmutableTypedListener.Builder addAllStateReachedListener(Iterable<? extends Listener.StateListener<?>> elements)
stateReachedListener list.elements - An iterable of stateReachedListener elementsthis builder for use in a chained invocationpublic final ImmutableTypedListener.Builder addStateTearDownListener(Listener.StateListener<?> element)
stateTearDownListener list.addStateTearDownListener in interface Listener.TypedListener.Builderelement - A stateTearDownListener elementthis builder for use in a chained invocation@SafeVarargs public final ImmutableTypedListener.Builder addStateTearDownListener(Listener.StateListener<?>... elements)
stateTearDownListener list.elements - An array of stateTearDownListener elementsthis builder for use in a chained invocationpublic final ImmutableTypedListener.Builder stateTearDownListener(Iterable<? extends Listener.StateListener<?>> elements)
stateTearDownListener list.elements - An iterable of stateTearDownListener elementsthis builder for use in a chained invocationpublic final ImmutableTypedListener.Builder addAllStateTearDownListener(Iterable<? extends Listener.StateListener<?>> elements)
stateTearDownListener list.elements - An iterable of stateTearDownListener elementsthis builder for use in a chained invocationpublic ImmutableTypedListener build()
ImmutableTypedListener.build in interface Listener.TypedListener.BuilderIllegalStateException - if any required attributes are missingCopyright © 2025. All rights reserved.