T
- The type of syntax unit to collect.public interface InterestBroadcaster<T> extends Broadcaster
QueryableBroadcaster
, but it only stores references of a single type.Modifier and Type | Method and Description |
---|---|
Iterable<T> |
gather()
Gets all units of the expected type that were broadcasted.
|
Optional<T> |
one()
Gets the first or only unit of the expected type to be broadcast, if present.
|
InterestBroadcaster<T> |
reset()
Clears all stored units that matched the expected type.
|
broadcast, chain, chainBroadcast, cut
Optional<T> one()
Optional
if not present.Iterable<T> gather()
InterestBroadcaster<T> reset()
Copyright (c) 2019, Salesforce.com, Inc. All rights reserved. Licensed under the BSD 3-Clause license. For full license text, see the LICENSE file in the repository.