in scala.collection.jcl
trait Collection

`abstract trait` Collection [A]
  `extends` java.lang.Object
  `with` scala.collection.jcl.MutableIterable[A]
  `with` scala.ScalaObject

  Analogous to a Java collection.

Author:
  Sean McDirmid

Direct Known Subclasses:
  Set, Filter, Filter, CollectionWrapper, Filter, Filter, Filter, Buffer

Class Summary
| `class` Filter Base implementation of a filtered collection

Def Summary
| `def` + (t: A) : Collection.this.type adds "a" from the collection. Useful for chaining.
| `def` ++ (that: scala.Iterable[A]) : Collection.this.type Operator shortcut for addAll.
| `def` += (t: A) : scala.Unit adds "a" from the collection.
| `def` -= (a: A) : scala.Unit removes "a" from the collection.
`abstract` | `def` add (a: A) : scala.Boolean Adds "a" to the collection, return true if "a" is actually added.
| `def` addAll (i: scala.Iterable[A]) : scala.Boolean Adds all elements in "i" to the collection, return true if any elements are added.
| `def` hasAll (i: scala.Iterable[A]) : scala.Boolean Type-safe version of containsAll. * * @author Sean McDirmid
| `def` pfilter (p: (A) => scala.Boolean) : scala.collection.jcl.MutableIterable[A] Used for non-strict filtered collection that only includes elements of this collection that are true for "p." * Any elements added to or removed from the resulting * filter will update this collection. Any changes to this collection * can update the filtered collection. * @return a non-strict filter of this collection.
`abstract` | `def` transform (f: (A) => A) : scala.Boolean Transforms each element of the collection in-place according to `f`.

Def inherited from scala.collection.jcl.MutableIterable[A]
- , --, clear, elements, has, isEmpty, pmap, remove, removeAll, retain, retainAll, size

Def Detail

`def` + (t: A): Collection.this.type

  adds "a" from the collection. Useful for chaining.

`def` ++ (that: scala.Iterable[A]): Collection.this.type

  Operator shortcut for addAll.

`def` += (t: A): scala.Unit

  adds "a" from the collection.

`def` -= (a: A): scala.Unit

  removes "a" from the collection.

`abstract def` add (a: A): scala.Boolean

  Adds "a" to the collection, return true if "a" is actually added.

`def` addAll (i: scala.Iterable[A]): scala.Boolean

  Adds all elements in "i" to the collection, return true if any elements are added.

`def` hasAll (i: scala.Iterable[A]): scala.Boolean

  Type-safe version of containsAll. * * @author Sean McDirmid

`def` pfilter (p: (A) => scala.Boolean): scala.collection.jcl.MutableIterable[A]

  Used for non-strict filtered collection that only includes elements of this collection that are true for "p." * Any elements added to or removed from the resulting * filter will update this collection. Any changes to this collection * can update the filtered collection. * @return a non-strict filter of this collection.

`abstract def` transform (f: (A) => A): scala.Boolean

  Transforms each element of the collection in-place according to `f`.

Parameters:
  `f -`
Returns:
  `true` if the collection is actually updated.