class SpecificNumberSource extends NumberSource
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).
- Source
- SpecificNumberSource.scala
- Exceptions thrown
IllegalArgumentExceptionif any of the numbers provided are negative
- Alphabetic
- By Inheritance
- SpecificNumberSource
- NumberSource
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new SpecificNumberSource(values: Iterable[Int])
- values
the domain of numbers to be used by this source; must only be positive integers or zero
- Exceptions thrown
IllegalArgumentExceptionif any of the numbers provided are negative
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clear(): List[IdentifiableEntity]
Reset all number
Monitors so that their underlying number is not longer treated as assigned.Reset all number
Monitors 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 freeMonitorsthat are marked asRestricted.- returns
a
Listof assignments maintained by all the currently-used numberMonitors
- Definition Classes
- SpecificNumberSource → NumberSource
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def countAvailable: Int
The count of numbers that can still be drawn.
The count of numbers that can still be drawn.
- returns
the count
- Definition Classes
- SpecificNumberSource → NumberSource
- def countUsed: Int
The count of numbers that can not be drawn.
The count of numbers that can not be drawn.
- returns
the count
- Definition Classes
- SpecificNumberSource → NumberSource
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def finalizeRestrictions: List[Int]
Numbers from this source may not longer be marked as
Restricted.Numbers from this source may not longer be marked as
Restricted.- returns
the
Listof all numbers that have been restricted
- Definition Classes
- SpecificNumberSource → NumberSource
- def get(obj: IdentifiableEntity): Option[SecureKey]
Produce an un-modifiable wrapper for the
Monitorfor this entity, if the entity is discovered being represented in this source.Produce an un-modifiable wrapper for the
Monitorfor this entity, if the entity is discovered being represented in this source.- obj
the entity
- returns
the wrapped
Monitor
- Definition Classes
- SpecificNumberSource → NumberSource
- def get(number: Int): Option[SecureKey]
Produce an un-modifiable wrapper for the
Monitorfor this number.Produce an un-modifiable wrapper for the
Monitorfor this number.- number
the number
- returns
the wrapped
Monitor
- Definition Classes
- SpecificNumberSource → NumberSource
- def getAvailable(number: Int): Option[LoanedKey]
Produce a modifiable wrapper for the
Monitorfor this number, only if the number has not been used.Produce a modifiable wrapper for the
Monitorfor this number, only if the number has not been used. TheMonitorshould be updated before being wrapped, if necessary.- number
the number
- returns
the wrapped
Monitor, orNone
- Definition Classes
- SpecificNumberSource → NumberSource
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def max: Int
The maximum number that can be produced by this source.
The maximum number that can be produced by this source.
- returns
the max
- Definition Classes
- SpecificNumberSource → NumberSource
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def restrictNumber(number: Int): Option[LoanedKey]
Produce a modifiable wrapper for the
Monitorfor this number, only if the number has not been used.Produce a modifiable wrapper for the
Monitorfor this number, only if the number has not been used. This wrappedMonitorcan only be assigned once and the number may not bereturnNumbered to this source.- number
the number
- returns
the wrapped
Monitor
- Definition Classes
- SpecificNumberSource → NumberSource
- def returnNumber(number: Int): Option[IdentifiableEntity]
Consume the number of a
Monitorand release that number from its previous assignment/use.Consume the number of a
Monitorand release that number from its previous assignment/use.- number
the number
- returns
any object previously using this number
- Definition Classes
- SpecificNumberSource → NumberSource
- def returnNumber(monitor: LoanedKey): Option[IdentifiableEntity]
Consume a wrapped
Monitorand release its number from its previous assignment/use.Consume a wrapped
Monitorand release its number from its previous assignment/use.- monitor
the
Monitor- returns
any object previously using this
Monitor
- Definition Classes
- NumberSource
- def returnNumber(monitor: SecureKey): Option[IdentifiableEntity]
Consume a wrapped
Monitorand release its number from its previous assignment/use.Consume a wrapped
Monitorand release its number from its previous assignment/use.- monitor
the
Monitor- returns
any object previously using this
Monitor
- Definition Classes
- NumberSource
- def size: Int
The count of numbers allocated to this source.
The count of numbers allocated to this source.
- returns
the count
- Definition Classes
- SpecificNumberSource → NumberSource
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def test(number: Int): Boolean
Is this number a member of this number source?
Is this number a member of this number source?
- number
the number
- returns
true, if it is a member;false, otherwise
- Definition Classes
- SpecificNumberSource → NumberSource
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()