object Memo extends MemoInstances
- Source
- Memo.scala
- Alphabetic
- By Inheritance
- Memo
- MemoInstances
- 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 arrayMemo[V >: Null](n: Int)(implicit arg0: ClassTag[V]): Memo[Int, V]
Cache results in an
n
-long array. - final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def doubleArrayMemo(n: Int, sentinel: Double = 0d): Memo[Int, Double]
As with
arrayMemo
, but memoizing double results !=sentinel
. - 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])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def immutableHashMapMemo[K, V]: Memo[K, V]
Cache results in a hash map.
Cache results in a hash map. Nonsensical unless
K
has a meaningfulhashCode
andjava.lang.Object.equals
. As this memo uses a single var, it's thread-safe. - def immutableMapMemo[K, V](m: Map[K, V]): Memo[K, V]
- def immutableTreeMapMemo[K, V](implicit arg0: scala.Ordering[K]): Memo[K, V]
Cache results in a tree map.
Cache results in a tree map. As this memo uses a single var, it's thread-safe.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def memo[K, V](f: ((K) => V) => (K) => V): Memo[K, V]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nilMemo[K, V]: Memo[K, V]
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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()
Deprecated Value Members
- def immutableListMapMemo[K, V]: Memo[K, V]
Cache results in a list map.
Cache results in a list map. Nonsensical unless
K
has a meaningfuljava.lang.Object.equals
. As this memo uses a single var, it's thread-safe.- Annotations
- @deprecated
- Deprecated
(Since version 7.2.19) removed in scalaz 7.3: not efficient
- def mutableHashMapMemo[K, V]: Memo[K, V]
Cache results in a scala.collection.mutable.HashMap.
Cache results in a scala.collection.mutable.HashMap. Nonsensical if
K
lacks a meaningfulhashCode
andjava.lang.Object.equals
.- Annotations
- @deprecated
- Deprecated
(Since version 7.2.19) removed in scalaz 7.3: not thread safe, relies on Object
- def mutableMapMemo[K, V](a: Map[K, V]): Memo[K, V]
- Annotations
- @deprecated
- Deprecated
(Since version 7.2.19) removed in scalaz 7.3: leaks mutable state, not thread safe
- def weakHashMapMemo[K, V]: Memo[K, V]
As with
mutableHashMapMemo
, but forget elements according to GC pressure.As with
mutableHashMapMemo
, but forget elements according to GC pressure.- Annotations
- @deprecated
- Deprecated
(Since version 7.2.19) removed in scalaz 7.3: not thread safe, relies on Object, not efficient