trait WrapAsScala extends LowPriorityWrapAsScala
- Annotations
- @deprecated
- Deprecated
(Since version 2.12.0) use JavaConverters or consider ToScalaImplicits
- Alphabetic
- By Inheritance
- WrapAsScala
- LowPriorityWrapAsScala
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
implicit
def
asScalaBuffer[A](l: List[A]): Buffer[A]
Implicitly converts a Java
Listto a Scala mutableBuffer.Implicitly converts a Java
Listto a Scala mutableBuffer.The returned Scala
Bufferis backed by the provided JavaListand any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.If the Java
Listwas previously obtained from an implicit or explicit call ofasScalaBuffer(scala.collection.mutable.Buffer)then the original ScalaBufferwill be returned.- l
The
Listto be converted.- returns
A Scala mutable
Bufferview of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
implicit
def
asScalaIterator[A](it: java.util.Iterator[A]): Iterator[A]
Implicitly converts a Java
Iteratorto a ScalaIterator.Implicitly converts a Java
Iteratorto a ScalaIterator.The returned Scala
Iteratoris backed by the provided JavaIteratorand any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.If the Java
Iteratorwas previously obtained from an implicit or explicit call ofasIterator(scala.collection.Iterator)then the original ScalaIteratorwill be returned.- it
The
Iteratorto be converted.- returns
A Scala
Iteratorview of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
implicit
def
asScalaSet[A](s: java.util.Set[A]): mutable.Set[A]
Implicitly converts a Java Set to a Scala mutable Set.
Implicitly converts a Java Set to a Scala mutable Set. The returned Scala Set is backed by the provided Java Set and any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.
If the Java Set was previously obtained from an implicit or explicit call of
asScalaSet(scala.collection.mutable.Set)then the original Scala Set will be returned.- s
The Set to be converted.
- returns
A Scala mutable Set view of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
implicit
def
collectionAsScalaIterable[A](i: Collection[A]): Iterable[A]
Implicitly converts a Java
Collectionto an ScalaIterable.Implicitly converts a Java
Collectionto an ScalaIterable.If the Java
Collectionwas previously obtained from an implicit or explicit call ofcollectionAsScalaIterable(scala.collection.SizedIterable)then the original ScalaIterablewill be returned.- i
The Collection to be converted.
- returns
A Scala Iterable view of the argument.
- Definition Classes
- LowPriorityWrapAsScala
- implicit def deprecated asScalaBuffer[A](l: List[A]): Buffer[A]
- implicit def deprecated asScalaIterator[A](it: java.util.Iterator[A]): Iterator[A]
- implicit def deprecated asScalaSet[A](s: java.util.Set[A]): mutable.Set[A]
- implicit def deprecated collectionAsScalaIterable[A](i: Collection[A]): Iterable[A]
- implicit def deprecated dictionaryAsScalaMap[A, B](p: Dictionary[A, B]): mutable.Map[A, B]
- implicit def deprecated enumerationAsScalaIterator[A](i: Enumeration[A]): Iterator[A]
- implicit def deprecated iterableAsScalaIterable[A](i: java.lang.Iterable[A]): Iterable[A]
- implicit def deprecated mapAsScalaConcurrentMap[A, B](m: ConcurrentMap[A, B]): concurrent.Map[A, B]
- implicit def deprecated mapAsScalaMap[A, B](m: java.util.Map[A, B]): mutable.Map[A, B]
- implicit def deprecated propertiesAsScalaMap(p: Properties): mutable.Map[String, String]
-
implicit
def
dictionaryAsScalaMap[A, B](p: Dictionary[A, B]): mutable.Map[A, B]
Implicitly converts a Java
Dictionaryto a Scala mutableMap.Implicitly converts a Java
Dictionaryto a Scala mutableMap.The returned Scala
Mapis backed by the provided JavaDictionaryand any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.- p
The Dictionary to be converted.
- returns
A Scala mutable Map view of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
implicit
def
enumerationAsScalaIterator[A](i: Enumeration[A]): Iterator[A]
Implicitly converts a Java Enumeration to a Scala Iterator.
Implicitly converts a Java Enumeration to a Scala Iterator. The returned Scala Iterator is backed by the provided Java Enumeration and any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.
If the Java Enumeration was previously obtained from an implicit or explicit call of
enumerationAsScalaIterator(scala.collection.Iterator)then the original Scala Iterator will be returned.- i
The Enumeration to be converted.
- returns
A Scala Iterator view of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
implicit
def
iterableAsScalaIterable[A](i: java.lang.Iterable[A]): Iterable[A]
Implicitly converts a Java
Iterableto a ScalaIterable.Implicitly converts a Java
Iterableto a ScalaIterable.The returned Scala
Iterableis backed by the provided JavaIterableand any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.If the Java
Iterablewas previously obtained from an implicit or explicit call ofiterableAsScalaIterable(scala.collection.Iterable)then the original Scala Iterable will be returned.- i
The Iterable to be converted.
- returns
A Scala Iterable view of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
implicit
def
mapAsScalaConcurrentMap[A, B](m: ConcurrentMap[A, B]): concurrent.Map[A, B]
Implicitly converts a Java ConcurrentMap to a Scala mutable ConcurrentMap.
Implicitly converts a Java ConcurrentMap to a Scala mutable ConcurrentMap. The returned Scala ConcurrentMap is backed by the provided Java ConcurrentMap and any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.
If the Java ConcurrentMap was previously obtained from an implicit or explicit call of
asConcurrentMap(scala.collection.mutable.ConcurrentMap)then the original Scala ConcurrentMap will be returned.- m
The ConcurrentMap to be converted.
- returns
A Scala mutable ConcurrentMap view of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
implicit
def
mapAsScalaMap[A, B](m: java.util.Map[A, B]): mutable.Map[A, B]
Implicitly converts a Java
Mapto a Scala mutableMap.Implicitly converts a Java
Mapto a Scala mutableMap.The returned Scala
Mapis backed by the provided JavaMapand any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.If the Java
Mapwas previously obtained from an implicit or explicit call ofmapAsScalaMap(scala.collection.mutable.Map)then the original Scala Map will be returned.If the wrapped map is synchronized (e.g. from
java.util.Collections.synchronizedMap), it is your responsibility to wrap all non-atomic operations withunderlying.synchronized. This includesget, asjava.util.Map's API does not allow for an atomicgetwhennullvalues may be present.- m
The Map to be converted.
- returns
A Scala mutable Map view of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
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()
-
implicit
def
propertiesAsScalaMap(p: Properties): mutable.Map[String, String]
Implicitly converts a Java
Propertiesto a Scalamutable Map[String, String].Implicitly converts a Java
Propertiesto a Scalamutable Map[String, String].The returned Scala
Map[String, String]is backed by the provided JavaPropertiesand any side-effects of using it via the Scala interface will be visible via the Java interface and vice versa.- p
The Properties to be converted.
- returns
A Scala mutable Map[String, String] view of the argument.
- Definition Classes
- LowPriorityWrapAsScala
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )