net.psforever.objects.guid.source
the highest number to be generated by this source; must be a positive integer or zero
IllegalArgumentException
if max
is less than zero (therefore the count of generated numbers is at most zero)
java.lang.NegativeArraySizeException
if the count of numbers generated due to max is negative
Produce a modifiable wrapper for the Monitor
for this number, only if the number has not been used.
Produce a modifiable wrapper for the Monitor
for this number, only if the number has not been used.
The Monitor
should be updated before being wrapped, if necessary.
the number
the wrapped Monitor
, or None
Reset all number Monitor
s so that their underlying number is not longer treated as assigned.
Reset all number Monitor
s so that their underlying number is not longer treated as assigned.
Perform some level of housecleaning to ensure that all dependencies are resolved in some manner.
This is the only way to free Monitors
that are marked as Restricted
.
a List
of assignments maintained by all the currently-used number Monitors
The count of numbers that can still be drawn.
The count of numbers that can still be drawn.
the count
The count of numbers that can not be drawn.
The count of numbers that can not be drawn.
the count
Numbers from this source may not longer be marked as Restricted
.
Numbers from this source may not longer be marked as Restricted
.
the List
of all numbers that have been restricted
Produce an un-modifiable wrapper for the Monitor
for this number.
Produce an un-modifiable wrapper for the Monitor
for this number.
the number
the wrapped Monitor
Produce a modifiable wrapper for the Monitor
for this number, only if the number has not been used.
Produce a modifiable wrapper for the Monitor
for this number, only if the number has not been used.
This wrapped Monitor
can only be assigned once and the number may not be Return
ed to this source.
the number
the wrapped Monitor
ArrayIndexOutOfBoundsException
if the requested number is above or below the range
Consume the number of a Monitor
and release that number from its previous assignment/use.
Consume the number of a Monitor
and release that number from its previous assignment/use.
the number
any object previously using this number
Consume a wrapped Monitor
and release its number from its previous assignment/use.
Consume a wrapped Monitor
and release its number from its previous assignment/use.
the Monitor
any object previously using this Monitor
Consume a wrapped Monitor
and release its number from its previous assignment/use.
Consume a wrapped Monitor
and release its number from its previous assignment/use.
the Monitor
any object previously using this Monitor
The count of numbers allocated to this source.
The count of numbers allocated to this source.
the count
Is this number a member of this number source?
Is this number a member of this number source?
the number
true
, if it is a member; false
, otherwise
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.Produce a series of numbers from 0 to a maximum number (inclusive) to be used as globally unique identifiers (GUIDs).
IllegalArgumentException
ifmax
is less than zero (therefore the count of generated numbers is at most zero)java.lang.NegativeArraySizeException
if the count of numbers generated due to max is negative