Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document ForwardingAudience #8

Open
zml2008 opened this issue Nov 12, 2020 · 0 comments
Open

Document ForwardingAudience #8

zml2008 opened this issue Nov 12, 2020 · 0 comments
Labels
area: api type: enhancement New feature or request

Comments

@zml2008
Copy link
Member

zml2008 commented Nov 12, 2020

Points to cover

  • extend .Single
  • how only the terminal methods are overridden
  • Use in cross-platform plugins

Example use cases

public class GameTeam implements ForwardingAudience {
  private final List<GamePlayer> players = new ArrayList<>();

  // ....

  @Override
  public @NonNull Iterable<? extends GamePlayer> audiences() {
    return this.players;
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants