class TypesSet extends collection.TypesSet
An efficient representation of a set of types if some types are actually upper type bounds and hence already represent sets of types.
Thread Safety
This class is not thread safe.
- Source
- TypesSet.scala
- Alphabetic
- By Inheritance
- TypesSet
- TypesSet
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new TypesSet(classHierarchy: ClassHierarchy)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def ++<:=(tpes: Iterable[ObjectType]): Unit
- def ++=(tpes: Iterable[ObjectType]): Unit
- def +<:=(tpe: ObjectType): Unit
Adds the given upper type bound to this
TypesSet
unless a supertype of the given type is already added as an upper type bound.Adds the given upper type bound to this
TypesSet
unless a supertype of the given type is already added as an upper type bound.All subtypes – whether concrete or upper types bounds – are removed.
- def +=(tpe: ObjectType): Unit
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final val classHierarchy: ClassHierarchy
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- final def concreteTypes: Set[ObjectType]
The set of concrete types which are not subtypes of any type which is returned by
upperTypeBounds
. - final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(other: Any): Boolean
- Definition Classes
- TypesSet → AnyRef → Any
- def foreach[U](f: (ObjectType, Boolean) => U): Unit
- f
A call back function will be called for each type stored in the set along with the information if type represents an upper type bound (
true
) or refers to a concrete class/interface type (the second parameter is thenfalse
).
- Definition Classes
- TypesSet
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final lazy val hashCode: Int
- Definition Classes
- TypesSet → AnyRef → Any
- def isEmpty: Boolean
Returns
true
if this set is empty. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nonEmpty: Boolean
Returns
true
if this set contains at least one type. - final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def size: Int
The number of types explicitly stored in the set.
The number of types explicitly stored in the set. This number is independent of the number of represented types. E.g., if
java.lang.Object
is stored in this set, then the size of this set is 1 even though it represents all known types.- Definition Classes
- TypesSet
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- var theConcreteTypes: Set[ObjectType]
- Attributes
- protected[this]
- var theUpperTypeBounds: Set[ObjectType]
- Attributes
- protected[this]
- def toImmutableTypesSet: immutable.TypesSet
- def toString(): String
- Definition Classes
- TypesSet → AnyRef → Any
- def types: (Set[ObjectType], Set[ObjectType])
Returns a pair where the first set contains all concrete types and the second set contains all upper type bounds.
Returns a pair where the first set contains all concrete types and the second set contains all upper type bounds.
- Definition Classes
- TypesSet
- final def upperTypeBounds: Set[ObjectType]
- 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