sealed abstract class LongTrieSetWithList extends LongLinkedSet
An immutable set of long values which maintains an additional list to enable an access of the values in insertion order (newest first). Additionally, the list is used to provide more efficient iterate and foreach methods when compared to doing both on the underlying trie itself.
Compared to the LongLinkedTrieSet this implementation uses less memory and is faster to create; however, the LongLinkedTrieSet offers faster contains and foreach methods than this implementation. Hence, this representation is faster to create and requires significantly less memory. However, accessing the data structure is generally slower. (Internally every node in the trie uses a lookup table to determine the successor node w.r.t. the next bits of a value; this requires an indirection which costs time.)
- Self Type
- LongTrieSetWithList
- Source
- LongTrieSetWithList.scala
- Alphabetic
- By Inheritance
- LongTrieSetWithList
- LongLinkedSet
- LongSet
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final type ThisSet = LongTrieSetWithList
- Definition Classes
- LongTrieSetWithList → LongLinkedSet → LongSet
Abstract Value Members
- abstract def +(i: Long): ThisSet
Adds the given value to this set; returns
this
if this set already contains the value otherwise a new set is returned.Adds the given value to this set; returns
this
if this set already contains the value otherwise a new set is returned.- Definition Classes
- LongSet
- abstract def contains(value: Long): Boolean
- Definition Classes
- LongSet
- abstract def foldLeft[B](z: B)(op: (B, Long) => B): B
- Definition Classes
- LongSet
- abstract def forFirstN[U](n: Int)(f: (Long) => U): Unit
- Definition Classes
- LongLinkedSet
- abstract def forall(p: (Long) => Boolean): Boolean
- Definition Classes
- LongSet
- abstract def foreach[U](f: (Long) => U): Unit
- Definition Classes
- LongSet
- abstract def head: Long
- Definition Classes
- LongLinkedSet
- abstract def isEmpty: Boolean
- Definition Classes
- LongSet
- abstract def isSingletonSet: Boolean
Tests if this set has exactly one element (complexity: O(1)).
Tests if this set has exactly one element (complexity: O(1)).
- Definition Classes
- LongSet
- abstract def iterator: LongIterator
- Definition Classes
- LongSet
- abstract def size: Int
The size of the set (complexity: O(1)).
The size of the set (complexity: O(1)).
- Definition Classes
- LongSet
Concrete 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 clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def mkString(in: String): String
- Definition Classes
- LongSet
- final def mkString(pre: String, in: String, post: String): String
- Definition Classes
- LongSet
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
- Definition Classes
- LongSet
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def transform[B, To](f: (Long) => B, b: Builder[B, To]): To
- Definition Classes
- LongSet
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated