of

fun of(members: Set<CoordinateComponent>, min: Int, max: Int): MatchGroup

Creates a MatchGroup with validation.

Return

MatchGroup Created group.

Since

5.3.0

Parameters

members

Coordinates belonging to this group. Must not be empty.

min

Minimum number of matched members. Must be >= 0.

max

Maximum number of matched members. Must be in range min to members.size.

Throws

If members is empty, min is negative, max is less than min, or max exceeds members.size.