Skip to content

Java Stream + forEachCardInGame #11058

Description

@Hanmac

The Visitor interface used for Game::forEachCardInGame could/should probably be reworked using JavaStream.
Either as Predicate, Consumer or Collector.

For this to clean up, classes like Zone/PlayerZone should return a (filtered) Stream of their cards instead of CardCollection objects.

I need to check out if Stream.concat or Stream.Builder is better for this.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions