A NumberSource is considered a master "pool" of numbers from which all numbers are available to be drawn.
A NumberSource is considered a master "pool" of numbers from which all numbers are available to be drawn.
A NumberSource is considered a master "pool" of numbers from which all numbers are available to be drawn.
The numbers are considered to be exclusive.
The following are guidelines for implementing classes.
The numbers allocated to this source are from zero up through positive integers.
When a number is drawn from the pool, it is flagged internally and can not be selected for drawing again until the flag is removed.
Some flagging states are allowed to restrict that number for the whole lifespan of the source.
This internal flagging is maintained by a "monitor" that should not directly get exposed.
Use the provided indirect referencing containers - SecureKey and LoanedKey.
The purpose of a NumberSource is to help facilitate globally unique identifiers (GUID, pl. GUIDs).
A
NumberSourceis considered a master "pool" of numbers from which all numbers are available to be drawn. The numbers are considered to be exclusive.Produce a series of numbers from 0 to a maximum number (inclusive) to be used as globally unique identifiers (GUIDs).
IllegalArgumentExceptionifmaxis less than zero (therefore the count of generated numbers is at most zero)java.lang.NegativeArraySizeExceptionif the count of numbers generated due to max is negative