package source
- Alphabetic
- Public
- Protected
Type Members
- class MaxNumberSource extends NumberSource
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. Produce a series of numbers from 0 to a maximum number (inclusive) to be used as globally unique identifiers (GUID's).- Exceptions thrown
IllegalArgumentException
ifmax
is less than zero (therefore the count of generated numbers is at most zero)
- trait NumberSource extends AnyRef
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
andLoanedKey
.
The purpose of aNumberSource
is to help facilitate globally unique identifiers (GUID, pl. GUIDs). - class SpecificNumberSource extends NumberSource
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. Produce a series of numbers from 0 to a maximum number (inclusive) to be used as globally unique identifiers (GUID's).- Exceptions thrown
IllegalArgumentException
if any of the numbers provided are negative
Value Members
- object MaxNumberSource
- object SpecificNumberSource