ReadOnlySet

dotty.tools.dotc.util.ReadOnlySet
See theReadOnlySet companion object
abstract class ReadOnlySet[T]

A class for the readonly part of mutable sets.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class MutableSet[T]
class HashSet[T]
class WeakHashSet[A]
class Uniques
Show all

Members list

Value members

Abstract methods

def iterator: Iterator[T]
def lookup(x: T): T | Null

The entry in the set such that isEqual(x, entry), or else null.

The entry in the set such that isEqual(x, entry), or else null.

Attributes

def size: Int

Concrete methods

def contains(x: T): Boolean
def foreach[U](f: T => U): Unit
def toList: List[T]