SimpleIdentitySet

dotty.tools.dotc.util.SimpleIdentitySet
See theSimpleIdentitySet companion object
abstract class SimpleIdentitySet[+Elem <: AnyRef]

A simple linked set with eq as the comparison, optimized for small sets. It has linear complexity for contains, +, and -.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object empty.type

Members list

Value members

Abstract methods

def +[E >: Elem <: AnyRef](x: E): SimpleIdentitySet[E]
def -[E >: Elem <: AnyRef](x: E): SimpleIdentitySet[Elem]
def /:[A, E >: Elem <: AnyRef](z: A)(f: (A, E) => A): A
def contains[E >: Elem <: AnyRef](x: E): Boolean
def exists[E >: Elem <: AnyRef](p: E => Boolean): Boolean
def foreach(f: Elem => Unit): Unit
def iterator: Iterator[Elem]
def map[B <: AnyRef](f: Elem => B): SimpleIdentitySet[B]
def size: Int
def toList: List[Elem]

Concrete methods

def ++[E >: Elem <: AnyRef](that: SimpleIdentitySet[E]): SimpleIdentitySet[E]
def --[E >: Elem <: AnyRef](that: SimpleIdentitySet[E]): SimpleIdentitySet[E]
def ==[E >: Elem <: AnyRef](that: SimpleIdentitySet[E]): Boolean
def filter(p: Elem => Boolean): SimpleIdentitySet[Elem]
def forall[E >: Elem <: AnyRef](p: E => Boolean): Boolean
Extension method from SimpleIdentitySet
final def isEmpty: Boolean
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any