object GenericPool
- Source
- GenericPool.scala
- Alphabetic
- By Inheritance
- GenericPool
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- def apply(hub: LongMap[String], max: Int, poolName: String): GenericPool
Overloaded constructor that assigns a "numerical first discovery" function for number selection.
Overloaded constructor that assigns a "numerical first discovery" function for number selection.
- hub
na
- max
na
- poolName
na
- returns
a
GenericPool
entity
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- 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 first(list: List[Long], domainSize: Int): Int
Get some number that is not accounted for in any other fixed pool, making it available in this generic one.
Returns the first number that is detected as available between two sorted numbers.Get some number that is not accounted for in any other fixed pool, making it available in this generic one.
Returns the first number that is detected as available between two sorted numbers.- list
all of the non-repeating numbers to be compared
- domainSize
how many numbers can be supported
- returns
the next available number, or -1
- 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
- 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 rand(list: List[Long], domainSize: Int): Int
Get some number that is not accounted for in any other fixed pool, making it available in this generic one.
Although called "rand
," this algorithm is not actually random.Get some number that is not accounted for in any other fixed pool, making it available in this generic one.
Although called "rand
," this algorithm is not actually random. From a sorted list of numbers, with a minimum and a maximum value appended, it finds the two adjacent numbers that are the most distant. It finds an average whole integer number between the two.
This solution gets expensive as the count of numbers inlist
increases.- list
all of the non-repeating numbers to be compared
- domainSize
how many numbers can be supported
- returns
midpoint of the largest distance between any two of the existing numbers, or -1
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()