Shrinkable

scala.collection.mutable.Shrinkable
trait Shrinkable[-A]

This trait forms part of collections that can be reduced using a -= operator.

Attributes

Source
Shrinkable.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Buffer[A]
class AbstractBuffer[A]
class ArrayBuffer[A]
class ArrayDeque[A]
class Queue[A]
class Stack[A]
class ListBuffer[A]
class UnrolledBuffer[T]
trait IndexedBuffer[A]
trait Map[K, V]
trait Map[K, V]
class TrieMap[K, V]
class AbstractMap[K, V]
class AnyRefMap[K, V]
class CollisionProofHashMap[K, V]
class HashMap[K, V]
class LinkedHashMap[K, V]
class ListMap[K, V]
class LongMap[V]
class WithDefault[K, V]
class WithDefault[K, V]
class OpenHashMap[Key, Value]
class TreeMap[K, V]
trait MultiMap[K, V]
trait SeqMap[K, V]
trait SortedMap[K, V]
trait MapOps[K, V, CC, C]
trait SortedMapOps[K, V, CC, C]
trait SetOps[A, CC, C]
class HashSet[A]
class LinkedHashSet[A]
trait Set[A]
class AbstractSet[A]
class BitSet
class TreeSet[A]
trait SortedSet[A]
trait SortedSetOps[A, CC, C]
Show all

Members list

Value members

Abstract methods

def subtractOne(elem: A): this.type

Removes a single element from this shrinkable collection.

Removes a single element from this shrinkable collection.

Value parameters

elem

the element to remove.

Attributes

Returns

the shrinkable collection itself

Source
Shrinkable.scala

Concrete methods

final def --=(xs: IterableOnce[A]): this.type

Alias for subtractAll

Alias for subtractAll

Attributes

Source
Shrinkable.scala
final def -=(elem: A): this.type

Alias for subtractOne

Alias for subtractOne

Attributes

Source
Shrinkable.scala
def subtractAll(xs: IterableOnce[A]): this.type

Removes all elements produced by an iterator from this shrinkable collection.

Removes all elements produced by an iterator from this shrinkable collection.

Value parameters

xs

the iterator producing the elements to remove.

Attributes

Returns

the shrinkable collection itself

Source
Shrinkable.scala

Deprecated methods

def -=(elem1: A, elem2: A, elems: A*): this.type

Removes two or more elements from this shrinkable collection.

Removes two or more elements from this shrinkable collection.

Value parameters

elem1

the first element to remove.

elem2

the second element to remove.

elems

the remaining elements to remove.

Attributes

Returns

the shrinkable collection itself

Deprecated
true
Source
Shrinkable.scala