scala.collection.JavaConversions
A class supporting filtered operations.
Creates a new map containing two or more key/value mappings and all the key/value mappings of this map.
Creates a new map containing a new key/value mapping and all the key/value mappings of this map.
Creates a new map containing the key/value mappings provided by the specified traversable object and all the key/value mappings of this map.
[use case] Concatenates this shrinkable collection with the elements of a traversable collection.
Concatenates this shrinkable collection with the elements of a traversable collection.
adds all elements produced by a TraversableOnce to this shrinkable collection.
Adds a new key/value pair to this map.
adds two or more elements to this shrinkable collection.
Creates a new map with all the key/value mappings of this map except mappings with keys equal to any of the two or more specified keys.
Creates a new map with all the key/value mappings of this map except the key/value mapping with the specified key.
Creates a new map with all the key/value mappings of this map except mappings with keys equal to any of those provided by the specified traversable object.
Removes all elements produced by an iterator from this shrinkable collection.
Removes a key from this map.
Removes two or more elements from this shrinkable collection.
Applies a binary operator to a start value and all elements of this shrinkable collection, going left to right.
Applies a binary operator to all elements of this shrinkable collection and a start value, going right to left.
Appends all bindings of this map to a string builder using start, end, and separator strings.
Appends all elements of this shrinkable collection to a string builder.
Appends all elements of this shrinkable collection to a string builder using a separator string.
Composes this partial function with a transformation function that gets applied to results of this partial function.
Retrieves the value which is associated with the given key.
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind.
Removes all bindings from the map.
This method creates and returns a copy of the receiver object.
[use case] Builds a new collection by applying a partial function to all elements of this shrinkable collection on which the function is defined.
Builds a new collection by applying a partial function to all elements of this shrinkable collection on which the function is defined.
The factory companion object that builds instances of class Shrinkable.
(f compose g)(x) == f(g(x))
Tests whether this map contains a binding for a key.
[use case] Copies elements of this shrinkable collection to an array.
Copies elements of this shrinkable collection to an array.
[use case] Copies values of this shrinkable collection to an array.
Copies values of this shrinkable collection to an array.
[use case] Copies values of this shrinkable collection to an array.
Copies values of this shrinkable collection to an array.
Copies all elements of this shrinkable collection to a buffer.
Counts the number of elements in the shrinkable collection which satisfy a predicate.
Defines the default value computation for the map, returned when a key is not found The method implemented here throws an exception, but it might be overridden in subclasses.
Selects all elements except first n ones.
Selects all elements except last n ones.
Drops longest prefix of elements that satisfy a predicate.
The empty map of the same type as this map
Compares two maps structurally; i.
Tests whether a predicate holds for some of the elements of this shrinkable collection.
Selects all elements of this shrinkable collection which satisfy a predicate.
Filters this map by retaining only keys satisfying a predicate.
Returns a new map with all key/value pairs for which the predicate
p
returns true
.
Finds the first element of the shrinkable collection satisfying a predicate, if any.
None
if iterable is empty.
[use case] Builds a new collection by applying a function to all elements of this shrinkable collection and concatenating the results.
Builds a new collection by applying a function to all elements of this shrinkable collection and concatenating the results.
[use case] Converts this shrinkable collection of traversable collections into a shrinkable collection in which all element collections are concatenated.
Converts this shrinkable collection of traversable collections into a shrinkable collection in which all element collections are concatenated.
Applies a binary operator to a start value and all elements of this shrinkable collection, going left to right.
Applies a binary operator to all elements of this shrinkable collection and a start value, going right to left.
Tests whether a predicate holds for all elements of this shrinkable collection.
[use case] Applies a function f
to all elements of this shrinkable collection.
Applies a function f
to all elements of this shrinkable collection.
The generic builder that builds instances of Shrinkable at arbitrary element types.
Optionally returns the value associated with a key.
[use case] Returns the value associated with a key, or a default value if the key is not contained in the map.
Returns the value associated with a key, or a default value if the key is not contained in the map.
If given key is already in this map, returns associated value.
Partitions this shrinkable collection into a map of shrinkable collections according to some discriminator function.
Partitions elements in fixed size shrinkable collections.
Tests whether this shrinkable collection is known to have a finite size.
Returns a hash code value for the object.
Selects the first element of this shrinkable collection.
Optionally selects the first element.
Selects all elements except the last.
Tests whether this map contains a binding for a key.
Tests whether the map is empty.
Tests whether this shrinkable collection can be repeatedly traversed.
Creates a new iterator over all key/value pairs of this map
Collects all keys of this map in a set.
Creates an iterator for all keys.
Creates an iterator for all keys.
Selects the last element.
Optionally selects the last element.
Turns this partial function into an plain function returning an Option
result.
[use case] Builds a new collection by applying a function to all elements of this shrinkable collection.
Builds a new collection by applying a function to all elements of this shrinkable collection.
Creates a new builder by applying a transformation function to the results of this builder.
Transforms this map by applying a function to every retrieved value.
[use case] Finds the largest element.
Finds the largest element.
[use case] Finds the smallest element.
Finds the smallest element.
Displays all elements of this shrinkable collection in a string.
Displays all elements of this shrinkable collection in a string using a separator string.
Displays all elements of this shrinkable collection in a string using start, end, and separator strings.
Tests whether the shrinkable collection is not empty.
Composes this partial function with a fallback partial function which gets applied where this partial function is not defined.
Partitions this shrinkable collection in two shrinkable collections according to a predicate.
[use case] Multiplies up the elements of this collection.
Multiplies up the elements of this collection.
return k for a product A(x_1,.
def
productElement(arg0: Int): Any
For a product A(x_1,.
def
productElements: Iterator[Any]
def
productIterator: Iterator[Any]
An iterator that returns all fields of this product
def
productPrefix: String
By default the empty string.
def
projection: IterableView[(A, B), Map[A, B]]
returns a projection that can be used to call non-strict filter
,map
, and flatMap
methods that build projections
of the collection.
def
put(k: A, v: B): Option[B]
Adds a new key/value pair to this map and optionally returns previously bound value.
def
reduceLeft[B >: (A, B)](op: (B, (A, B)) ⇒ B): B
Applies a binary operator to all elements of this shrinkable collection, going left to right.
def
reduceLeftOption[B >: (A, B)](op: (B, (A, B)) ⇒ B): Option[B]
Optionally applies a binary operator to all elements of this shrinkable collection, going left to right.
def
reduceRight[B >: (A, B)](op: ((A, B), B) ⇒ B): B
Applies a binary operator to all elements of this shrinkable collection, going right to left.
def
reduceRightOption[B >: (A, B)](op: ((A, B), B) ⇒ B): Option[B]
Optionally applies a binary operator to all elements of this shrinkable collection, going right to left.
def
remove(k: A): Option[B]
Removes a key from this map, returning the value associated previously
with that key as an option.
def
removeKey(key: A): Option[B]
If given key is defined in this map, remove it and return associated value as an Option.
def
repr: Map[A, B]
The collection of type shrinkable collection underlying this TraversableLike
object.
def
result(): Map[A, B]
The result when this map is used as a builder
def
retain(p: (A, B) ⇒ Boolean): MapLike[A, B, Map[A, B]]
Retains only those mappings for which the predicate
p
returns true
.
def
sameElements(that: Iterable[(A, B)]): Boolean
[use case] Checks if the other iterable collection contains the same elements in the same order as this shrinkable collection.
def
sameElements[B >: (A, B)](that: Iterable[B]): Boolean
Checks if the other iterable collection contains the same elements in the same order as this shrinkable collection.
def
scanLeft[B, That](z: B)(op: (B, (A, B)) ⇒ B)(implicit bf: CanBuildFrom[Map[A, B], B, That]): That
Produces a collection containing cummulative results of applying the operator going left to right.
def
scanRight[B, That](z: B)(op: ((A, B), B) ⇒ B)(implicit bf: CanBuildFrom[Map[A, B], B, That]): That
Produces a collection containing cummulative results of applying the operator going right to left.
def
size: Int
The size of this shrinkable collection.
def
sizeHint(coll: scala.collection.TraversableLike[_, _], delta: Int = 0): Unit
Gives a hint that one expects the result
of this builder
to have the same size as the given collection, plus some delta.
def
sizeHint(size: Int): Unit
Gives a hint how many elements are expected to be added
when the next result
is called.
def
sizeHintBounded(size: Int, boundingColl: scala.collection.TraversableLike[_, _]): Unit
Gives a hint how many elements are expected to be added
when the next result
is called, together with an upper bound
given by the size of some other collection.
def
slice(from: Int, until: Int): Map[A, B]
Selects an interval of elements.
def
sliding[B >: (A, B)](size: Int, step: Int): Iterator[Map[A, B]]
def
sliding[B >: (A, B)](size: Int): Iterator[Map[A, B]]
Groups elements in fixed size blocks by passing a "sliding window"
over them (as opposed to partitioning them, as is done in grouped.
def
span(p: ((A, B)) ⇒ Boolean): (Map[A, B], Map[A, B])
Splits this shrinkable collection into a prefix/suffix pair according to a predicate.
def
splitAt(n: Int): (Map[A, B], Map[A, B])
Splits this shrinkable collection into two at a given position.
def
stringPrefix: String
Defines the prefix of this object's toString
representation.
def
sum: Int
[use case] Sums up the elements of this collection.
def
sum[B >: (A, B)](implicit num: Numeric[B]): B
Sums up the elements of this collection.
def
tail: Map[A, B]
Selects all elements except the first.
def
take(n: Int): Map[A, B]
Selects first n elements.
def
takeRight(n: Int): Map[A, B]
Selects last n elements.
def
takeWhile(p: ((A, B)) ⇒ Boolean): Map[A, B]
Takes longest prefix of elements that satisfy a predicate.
def
toArray: Array[(A, B)]
[use case] Converts this shrinkable collection to an array.
def
toArray[B >: (A, B)](implicit arg0: ClassManifest[B]): Array[B]
Converts this shrinkable collection to an array.
def
toBuffer[B >: (A, B)]: Buffer[B]
Converts this shrinkable collection to a mutable buffer.
def
toIndexedSeq[B >: (A, B)]: IndexedSeq[B]
Converts this shrinkable collection to an indexed sequence.
def
toIterable: Iterable[(A, B)]
Converts this shrinkable collection to an iterable collection.
def
toIterator: Iterator[(A, B)]
Returns an Iterator over the elements in this shrinkable collection.
def
toList: List[(A, B)]
Converts this shrinkable collection to a list.
def
toMap[T, U](implicit ev: <:<[(A, B), (T, U)]): Map[T, U]
Converts this shrinkable collection to a map.
def
toSeq: Seq[(A, B)]
Converts this shrinkable collection to a sequence.
def
toSet[B >: (A, B)]: Set[B]
Converts this shrinkable collection to a set.
def
toStream: Stream[(A, B)]
Converts this shrinkable collection to a stream.
def
toString(): String
Converts this shrinkable collection to a string.
def
toTraversable: Traversable[(A, B)]
Converts this shrinkable collection to an unspecified Traversable.
def
transform(f: (A, B) ⇒ B): MapLike[A, B, Map[A, B]]
Applies a transformation function to all values contained in this map.
def
transpose[B](implicit asTraversable: ((A, B)) ⇒ Traversable[B]): Iterable[Iterable[B]]
Transposes this shrinkable collection of traversable collections into
a shrinkable collection of shrinkable collections.
val
underlying: Dictionary[A, B]
def
unzip[A1, A2](implicit asPair: ((A, B)) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
Converts this shrinkable collection of pairs into two collections of the first and second
halfs of each pair.
def
update(k: A, v: B): Unit
Adds a new key/value pair to this map.
def
updated[B1 >: B](key: A, value: B1): Map[A, B1]
Creates a new map consisting of all key/value pairs of the current map
plus a new pair of a given key and value.
def
values: Iterable[B]
Collects all values of this map in an iterable collection.
def
valuesIterator: Iterator[B]
Creates an iterator for all values in this map.
def
view(from: Int, until: Int): IterableView[(A, B), Map[A, B]]
Creates a non-strict view of a slice of this shrinkable collection.
def
view: IterableView[(A, B), Map[A, B]]
Creates a non-strict view of this shrinkable collection.
def
withFilter(p: ((A, B)) ⇒ Boolean): FilterMonadic[(A, B), Map[A, B]]
Creates a non-strict filter of this shrinkable collection.
def
zip[B](that: Iterable[B]): Iterable[((A, B), B)]
[use case] Returns a shrinkable collection formed from this shrinkable collection and another iterable collection
by combining corresponding elements in pairs.
def
zip[A1 >: (A, B), B, That](that: Iterable[B])(implicit bf: CanBuildFrom[Map[A, B], (A1, B), That]): That
Returns a shrinkable collection formed from this shrinkable collection and another iterable collection
by combining corresponding elements in pairs.
def
zipAll[B](that: Iterable[B], thisElem: (A, B), thatElem: B): Iterable[((A, B), B)]
[use case] Returns a shrinkable collection formed from this shrinkable collection and another iterable collection
by combining corresponding elements in pairs.
def
zipAll[B, A1 >: (A, B), That](that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Map[A, B], (A1, B), That]): That
Returns a shrinkable collection formed from this shrinkable collection and another iterable collection
by combining corresponding elements in pairs.
def
zipWithIndex: Iterable[((A, B), Int)]
[use case] Zips this shrinkable collection with its indices.
def
zipWithIndex[A1 >: (A, B), That](implicit bf: CanBuildFrom[Map[A, B], (A1, Int), That]): That
Zips this shrinkable collection with its indices.