sealed abstract case class SetDiff[T] extends Product with Serializable
SetDiff
is a class that represents changes applied to a set. It
is in fact a Set[T] => Set[T], but doesn't extend Function1 since
that brings in a pack of methods that we don't necessarily want.
- Self Type
- SetDiff[T]
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SetDiff
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(t: T): SetDiff[T]
- def ++(ts: Iterable[T]): SetDiff[T]
- def -(t: T): SetDiff[T]
- def --(ts: Iterable[T]): SetDiff[T]
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val add: Set[T]
- def apply(previous: Set[T]): Set[T]
Applies the contained diff to the supplied set.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- 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 invert: SetDiff[T]
Returns a diff that, if applied to a set, undoes the effects of this diff.
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def merge(other: SetDiff[T]): SetDiff[T]
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val remove: Set[T]
- def strictApply(previous: Set[T]): Option[Set[T]]
Same as apply, but fails to None if the diff's removal set has any items that aren't present in
previous
.Same as apply, but fails to None if the diff's removal set has any items that aren't present in
previous
.Returns Some(_) if and only if invert will undo.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- 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()