scala.collection.JavaConversions

JDictionaryWrapper

class JDictionaryWrapper[A, B](underlying: Dictionary[A, B]) extends Map[A, B] with Product

go to: companion
source: JavaConversions.scala
Inherited
  1. Hide All
  2. Show all
  1. Product
  2. Map
  3. MapLike
  4. Cloneable
  5. Shrinkable
  6. Builder
  7. Growable
  8. Map
  9. MapLike
  10. Subtractable
  11. PartialFunction
  12. Function1
  13. Iterable
  14. Iterable
  15. IterableLike
  16. Equals
  17. Traversable
  18. Mutable
  19. Traversable
  20. GenericTraversableTemplate
  21. TraversableLike
  22. TraversableOnce
  23. FilterMonadic
  24. HasNewBuilder
  25. AnyRef
  26. Any
Visibility
  1. Public
  2. All

Instance constructors

  1. new JDictionaryWrapper(underlying: Dictionary[A, B])

Type Members

  1. class DefaultKeySet extends Set[A]

    The implementation class of the set returned by keySet.

  2. class DefaultValuesIterable extends Iterable[B]

    The implementation class of the iterable returned by values.

  3. type Self = Map[A, B]

    The type implementing this traversable

  4. class WithFilter extends FilterMonadic[A, Repr]

    A class supporting filtered operations.

Value Members

  1. def !=(arg0: AnyRef): Boolean

  2. def !=(arg0: Any): Boolean

    o != arg0 is the same as !(o == (arg0)).

  3. def ##(): Int

  4. def $asInstanceOf[T0](): T0

  5. def $isInstanceOf[T0](): Boolean

  6. def +[B1 >: B](elem1: (A, B1), elem2: (A, B1), elems: (A, B1)*): Map[A, B1]

    Creates a new map containing two or more key/value mappings and all the key/value mappings of this map.

  7. def +[B1 >: B](kv: (A, B1)): Map[A, B1]

    Creates a new map containing a new key/value mapping and all the key/value mappings of this map.

  8. def ++[B1 >: B](xs: TraversableOnce[(A, B1)]): Map[A, B1]

    Creates a new map containing the key/value mappings provided by the specified traversable object and all the key/value mappings of this map.

  9. def ++(that: TraversableOnce[(A, B)]): Traversable[(A, B)]

    [use case] Concatenates this shrinkable collection with the elements of a traversable collection.

  10. def ++[B >: (A, B), That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Map[A, B], B, That]): That

    Concatenates this shrinkable collection with the elements of a traversable collection.

  11. def ++=(xs: TraversableOnce[(A, B)]): Growable[(A, B)]

    adds all elements produced by a TraversableOnce to this shrinkable collection.

  12. def +=(kv: (A, B)): JDictionaryWrapper[A, B]

    Adds a new key/value pair to this map.

  13. def +=(elem1: (A, B), elem2: (A, B), elems: (A, B)*): Growable[(A, B)]

    adds two or more elements to this shrinkable collection.

  14. def -(elem1: A, elem2: A, elems: A*): Map[A, B]

    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.

  15. def -(key: A): Map[A, B]

    Creates a new map with all the key/value mappings of this map except the key/value mapping with the specified key.

  16. def --(xs: TraversableOnce[A]): Map[A, B]

    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.

  17. def --=(xs: TraversableOnce[A]): Shrinkable[A]

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

  18. def -=(key: A): JDictionaryWrapper[A, B]

    Removes a key from this map.

  19. def -=(elem1: A, elem2: A, elems: A*): Shrinkable[A]

    Removes two or more elements from this shrinkable collection.

  20. def /:[B](z: B)(op: (B, (A, B)) ⇒ B): B

    Applies a binary operator to a start value and all elements of this shrinkable collection, going left to right.

  21. def :\[B](z: B)(op: ((A, B), B) ⇒ B): B

    Applies a binary operator to all elements of this shrinkable collection and a start value, going right to left.

  22. def ==(arg0: AnyRef): Boolean

    o == arg0 is the same as if (o eq null) arg0 eq null else o.equals(arg0).

  23. def ==(arg0: Any): Boolean

    o == arg0 is the same as o.equals(arg0).

  24. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Appends all bindings of this map to a string builder using start, end, and separator strings.

  25. def addString(b: StringBuilder): StringBuilder

    Appends all elements of this shrinkable collection to a string builder.

  26. def addString(b: StringBuilder, sep: String): StringBuilder

    Appends all elements of this shrinkable collection to a string builder using a separator string.

  27. def andThen[C](k: (B) ⇒ C): PartialFunction[A, C]

    Composes this partial function with a transformation function that gets applied to results of this partial function.

  28. def apply(key: A): B

    Retrieves the value which is associated with the given key.

  29. def asInstanceOf[T0]: T0

    This method is used to cast the receiver object to be of type T0.

  30. def canEqual(that: Any): Boolean

    Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind.

  31. def clear(): Unit

    Removes all bindings from the map.

  32. def clone(): Map[A, B]

    This method creates and returns a copy of the receiver object.

  33. def collect[B](pf: PartialFunction[(A, B), B]): Traversable[B]

    [use case] Builds a new collection by applying a partial function to all elements of this shrinkable collection on which the function is defined.

  34. def collect[B, That](pf: PartialFunction[(A, B), B])(implicit bf: CanBuildFrom[Map[A, B], B, That]): That

    Builds a new collection by applying a partial function to all elements of this shrinkable collection on which the function is defined.

  35. def companion: GenericCompanion[Iterable[A][A]]

    The factory companion object that builds instances of class Shrinkable.

  36. def compose[A](g: (A) ⇒ A): (A) ⇒ B

    (f compose g)(x) == f(g(x))

  37. def contains(key: A): Boolean

    Tests whether this map contains a binding for a key.

  38. def copyToArray(xs: Array[(A, B)], start: Int, len: Int): Unit

    [use case] Copies elements of this shrinkable collection to an array.

  39. def copyToArray[B >: (A, B)](xs: Array[B], start: Int, len: Int): Unit

    Copies elements of this shrinkable collection to an array.

  40. def copyToArray(xs: Array[(A, B)]): Unit

    [use case] Copies values of this shrinkable collection to an array.

  41. def copyToArray[B >: (A, B)](xs: Array[B]): Unit

    Copies values of this shrinkable collection to an array.

  42. def copyToArray(xs: Array[(A, B)], start: Int): Unit

    [use case] Copies values of this shrinkable collection to an array.

  43. def copyToArray[B >: (A, B)](xs: Array[B], start: Int): Unit

    Copies values of this shrinkable collection to an array.

  44. def copyToBuffer[B >: (A, B)](dest: Buffer[B]): Unit

    Copies all elements of this shrinkable collection to a buffer.

  45. def count(p: ((A, B)) ⇒ Boolean): Int

    Counts the number of elements in the shrinkable collection which satisfy a predicate.

  46. def default(key: A): B

    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.

  47. def drop(n: Int): Map[A, B]

    Selects all elements except first n ones.

  48. def dropRight(n: Int): Map[A, B]

    Selects all elements except last n ones.

  49. def dropWhile(p: ((A, B)) ⇒ Boolean): Map[A, B]

    Drops longest prefix of elements that satisfy a predicate.

  50. def elements: Iterator[(A, B)]

  51. def empty: Map[A, B]

    The empty map of the same type as this map

  52. def eq(arg0: AnyRef): Boolean

    This method is used to test whether the argument (arg0) is a reference to the receiver object (this).

  53. def equals(that: Any): Boolean

    Compares two maps structurally; i.

  54. def exists(p: ((A, B)) ⇒ Boolean): Boolean

    Tests whether a predicate holds for some of the elements of this shrinkable collection.

  55. def filter(p: ((A, B)) ⇒ Boolean): Map[A, B]

    Selects all elements of this shrinkable collection which satisfy a predicate.

  56. def filterKeys(p: (A) ⇒ Boolean): Map[A, B]

    Filters this map by retaining only keys satisfying a predicate.

  57. def filterNot(p: ((A, B)) ⇒ Boolean): Map[A, B]

    Returns a new map with all key/value pairs for which the predicate p returns true.

  58. def finalize(): Unit

    This method is called by the garbage collector on the receiver object when garbage collection determines that there are no more references to the object.

  59. def find(p: ((A, B)) ⇒ Boolean): Option[(A, B)]

    Finds the first element of the shrinkable collection satisfying a predicate, if any.

  60. def first: (A, B)

  61. def firstOption: Option[(A, B)]

    None if iterable is empty.

  62. def flatMap[B](f: ((A, B)) ⇒ Traversable[B]): Traversable[B]

    [use case] Builds a new collection by applying a function to all elements of this shrinkable collection and concatenating the results.

  63. def flatMap[B, That](f: ((A, B)) ⇒ Traversable[B])(implicit bf: CanBuildFrom[Map[A, B], B, That]): That

    Builds a new collection by applying a function to all elements of this shrinkable collection and concatenating the results.

  64. def flatten[B]: CC[B]

    [use case] Converts this shrinkable collection of traversable collections into a shrinkable collection in which all element collections are concatenated.

  65. def flatten[B](implicit asTraversable: ((A, B)) ⇒ Traversable[B]): Iterable[B]

    Converts this shrinkable collection of traversable collections into a shrinkable collection in which all element collections are concatenated.

  66. def foldLeft[B](z: B)(op: (B, (A, B)) ⇒ B): B

    Applies a binary operator to a start value and all elements of this shrinkable collection, going left to right.

  67. def foldRight[B](z: B)(op: ((A, B), B) ⇒ B): B

    Applies a binary operator to all elements of this shrinkable collection and a start value, going right to left.

  68. def forall(p: ((A, B)) ⇒ Boolean): Boolean

    Tests whether a predicate holds for all elements of this shrinkable collection.

  69. def foreach(f: ((A, B)) ⇒ Unit): Unit

    [use case] Applies a function f to all elements of this shrinkable collection.

  70. def foreach[U](f: ((A, B)) ⇒ U): Unit

    Applies a function f to all elements of this shrinkable collection.

  71. def genericBuilder[B]: Builder[B, Iterable[B]]

    The generic builder that builds instances of Shrinkable at arbitrary element types.

  72. def get(k: A): Option[B]

    Optionally returns the value associated with a key.

  73. def getClass(): java.lang.Class[_ <: java.lang.Object]

    Returns a representation that corresponds to the dynamic class of the receiver object.

  74. def getOrElse(key: A, default: ⇒ B): B

    [use case] Returns the value associated with a key, or a default value if the key is not contained in the map.

  75. def getOrElse[B1 >: B](key: A, default: ⇒ B1): B1

    Returns the value associated with a key, or a default value if the key is not contained in the map.

  76. def getOrElseUpdate(key: A, op: ⇒ B): B

    If given key is already in this map, returns associated value.

  77. def groupBy[K](f: ((A, B)) ⇒ K): Map[K, Map[A, B]]

    Partitions this shrinkable collection into a map of shrinkable collections according to some discriminator function.

  78. def grouped(size: Int): Iterator[Map[A, B]]

    Partitions elements in fixed size shrinkable collections.

  79. def hasDefiniteSize: Boolean

    Tests whether this shrinkable collection is known to have a finite size.

  80. def hashCode(): Int

    Returns a hash code value for the object.

  81. def head: (A, B)

    Selects the first element of this shrinkable collection.

  82. def headOption: Option[(A, B)]

    Optionally selects the first element.

  83. def init: Map[A, B]

    Selects all elements except the last.

  84. def isDefinedAt(key: A): Boolean

    Tests whether this map contains a binding for a key.

  85. def isEmpty: Boolean

    Tests whether the map is empty.

  86. def isInstanceOf[T0]: Boolean

    This method is used to test whether the dynamic type of the receiver object is T0.

  87. def isTraversableAgain: Boolean

    Tests whether this shrinkable collection can be repeatedly traversed.

  88. def iterator: Iterator[(A, B)]

    Creates a new iterator over all key/value pairs of this map

  89. def keySet: Set[A]

    Collects all keys of this map in a set.

  90. def keys: Iterable[A]

    Creates an iterator for all keys.

  91. def keysIterator: Iterator[A]

    Creates an iterator for all keys.

  92. def last: (A, B)

    Selects the last element.

  93. def lastOption: Option[(A, B)]

    Optionally selects the last element.

  94. def lift: (A) ⇒ Option[B]

    Turns this partial function into an plain function returning an Option result.

  95. def map[B](f: ((A, B)) ⇒ B): Traversable[B]

    [use case] Builds a new collection by applying a function to all elements of this shrinkable collection.

  96. def map[B, That](f: ((A, B)) ⇒ B)(implicit bf: CanBuildFrom[Map[A, B], B, That]): That

    Builds a new collection by applying a function to all elements of this shrinkable collection.

  97. def mapElements[C](f: (B) ⇒ C): Map[A, C]

  98. def mapResult[NewTo](f: (Map[A, B]) ⇒ NewTo): Builder[(A, B), NewTo]

    Creates a new builder by applying a transformation function to the results of this builder.

  99. def mapValues[C](f: (B) ⇒ C): Map[A, C]

    Transforms this map by applying a function to every retrieved value.

  100. def max: (A, B)

    [use case] Finds the largest element.

  101. def max[B >: (A, B)](implicit cmp: Ordering[B]): (A, B)

    Finds the largest element.

  102. def min: (A, B)

    [use case] Finds the smallest element.

  103. def min[B >: (A, B)](implicit cmp: Ordering[B]): (A, B)

    Finds the smallest element.

  104. def mkString: String

    Displays all elements of this shrinkable collection in a string.

  105. def mkString(sep: String): String

    Displays all elements of this shrinkable collection in a string using a separator string.

  106. def mkString(start: String, sep: String, end: String): String

    Displays all elements of this shrinkable collection in a string using start, end, and separator strings.

  107. def ne(arg0: AnyRef): Boolean

    o.ne(arg0) is the same as !(o.eq(arg0)).

  108. def newBuilder: Builder[(A, B), Map[A, B]]

    A common implementation of newBuilder for all mutable maps in terms of empty.

  109. def nonEmpty: Boolean

    Tests whether the shrinkable collection is not empty.

  110. def notify(): Unit

    Wakes up a single thread that is waiting on the receiver object's monitor.

  111. def notifyAll(): Unit

    Wakes up all threads that are waiting on the receiver object's monitor.

  112. def orElse[A1 <: A, B1 >: B](that: PartialFunction[A1, B1]): PartialFunction[A1, B1]

    Composes this partial function with a fallback partial function which gets applied where this partial function is not defined.

  113. def partition(p: ((A, B)) ⇒ Boolean): (Map[A, B], Map[A, B])

    Partitions this shrinkable collection in two shrinkable collections according to a predicate.

  114. def product: Int

    [use case] Multiplies up the elements of this collection.

  115. def product[B >: (A, B)](implicit num: Numeric[B]): B

    Multiplies up the elements of this collection.

  116. def productArity: Int

    return k for a product A(x_1,.

  117. def productElement(arg0: Int): Any

    For a product A(x_1,.

  118. def productElements: Iterator[Any]

  119. def productIterator: Iterator[Any]

    An iterator that returns all fields of this product

  120. def productPrefix: String

    By default the empty string.

  121. 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.

  122. def put(k: A, v: B): Option[B]

    Adds a new key/value pair to this map and optionally returns previously bound value.

  123. 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.

  124. 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.

  125. 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.

  126. 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.

  127. def remove(k: A): Option[B]

    Removes a key from this map, returning the value associated previously with that key as an option.

  128. def removeKey(key: A): Option[B]

    If given key is defined in this map, remove it and return associated value as an Option.

  129. def repr: Map[A, B]

    The collection of type shrinkable collection underlying this TraversableLike object.

  130. def result(): Map[A, B]

    The result when this map is used as a builder

  131. def retain(p: (A, B) ⇒ Boolean): MapLike[A, B, Map[A, B]]

    Retains only those mappings for which the predicate p returns true.

  132. def reversed: List[(A, B)]

  133. 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.

  134. 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.

  135. 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.

  136. 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.

  137. def size: Int

    The size of this shrinkable collection.

  138. 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.

  139. def sizeHint(size: Int): Unit

    Gives a hint how many elements are expected to be added when the next result is called.

  140. 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.

  141. def slice(from: Int, until: Int): Map[A, B]

    Selects an interval of elements.

  142. def sliding[B >: (A, B)](size: Int, step: Int): Iterator[Map[A, B]]

  143. 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.

  144. 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.

  145. def splitAt(n: Int): (Map[A, B], Map[A, B])

    Splits this shrinkable collection into two at a given position.

  146. def stringPrefix: String

    Defines the prefix of this object's toString representation.

  147. def sum: Int

    [use case] Sums up the elements of this collection.

  148. def sum[B >: (A, B)](implicit num: Numeric[B]): B

    Sums up the elements of this collection.

  149. def synchronized[T0](arg0: T0): T0

  150. def tail: Map[A, B]

    Selects all elements except the first.

  151. def take(n: Int): Map[A, B]

    Selects first n elements.

  152. def takeRight(n: Int): Map[A, B]

    Selects last n elements.

  153. def takeWhile(p: ((A, B)) ⇒ Boolean): Map[A, B]

    Takes longest prefix of elements that satisfy a predicate.

  154. def thisCollection: Iterable[(A, B)]

    The underlying collection seen as an instance of Shrinkable.

  155. def toArray: Array[(A, B)]

    [use case] Converts this shrinkable collection to an array.

  156. def toArray[B >: (A, B)](implicit arg0: ClassManifest[B]): Array[B]

    Converts this shrinkable collection to an array.

  157. def toBuffer[B >: (A, B)]: Buffer[B]

    Converts this shrinkable collection to a mutable buffer.

  158. def toCollection(repr: Map[A, B]): Iterable[(A, B)]

    A conversion from collections of type Repr to Shrinkable objects.

  159. def toIndexedSeq[B >: (A, B)]: IndexedSeq[B]

    Converts this shrinkable collection to an indexed sequence.

  160. def toIterable: Iterable[(A, B)]

    Converts this shrinkable collection to an iterable collection.

  161. def toIterator: Iterator[(A, B)]

    Returns an Iterator over the elements in this shrinkable collection.

  162. def toList: List[(A, B)]

    Converts this shrinkable collection to a list.

  163. def toMap[T, U](implicit ev: <:<[(A, B), (T, U)]): Map[T, U]

    Converts this shrinkable collection to a map.

  164. def toSeq: Seq[(A, B)]

    Converts this shrinkable collection to a sequence.

  165. def toSet[B >: (A, B)]: Set[B]

    Converts this shrinkable collection to a set.

  166. def toStream: Stream[(A, B)]

    Converts this shrinkable collection to a stream.

  167. def toString(): String

    Converts this shrinkable collection to a string.

  168. def toTraversable: Traversable[(A, B)]

    Converts this shrinkable collection to an unspecified Traversable.

  169. def transform(f: (A, B) ⇒ B): MapLike[A, B, Map[A, B]]

    Applies a transformation function to all values contained in this map.

  170. 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.

  171. val underlying: Dictionary[A, B]

  172. 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.

  173. def update(k: A, v: B): Unit

    Adds a new key/value pair to this map.

  174. 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.

  175. def values: Iterable[B]

    Collects all values of this map in an iterable collection.

  176. def valuesIterator: Iterator[B]

    Creates an iterator for all values in this map.

  177. def view(from: Int, until: Int): IterableView[(A, B), Map[A, B]]

    Creates a non-strict view of a slice of this shrinkable collection.

  178. def view: IterableView[(A, B), Map[A, B]]

    Creates a non-strict view of this shrinkable collection.

  179. def wait(): Unit

  180. def wait(arg0: Long, arg1: Int): Unit

  181. def wait(arg0: Long): Unit

  182. def withFilter(p: ((A, B)) ⇒ Boolean): FilterMonadic[(A, B), Map[A, B]]

    Creates a non-strict filter of this shrinkable collection.

  183. 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.

  184. 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.

  185. 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.

  186. 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.

  187. def zipWithIndex: Iterable[((A, B), Int)]

    [use case] Zips this shrinkable collection with its indices.

  188. def zipWithIndex[A1 >: (A, B), That](implicit bf: CanBuildFrom[Map[A, B], (A1, Int), That]): That

    Zips this shrinkable collection with its indices.