overflowdb.traversal.package$.JIterableOps
final implicit class JIterableOps[A](val jIterator: Iterator[A]) extends AnyVal Attributes
- Graph
- Supertypes
class AnyVal
trait Matchable
class Any
Members list
Concise view
Value members
Wraps a java iterator into a scala iterator, and casts it's elements.
This is faster than jIterator.asScala.map(_.asInstanceOf[B])
because
Wraps a java iterator into a scala iterator, and casts it's elements.
This is faster than jIterator.asScala.map(_.asInstanceOf[B])
because
.asScala
conversion is actually quite slow: multiple method calls and a match
without @switch
- no additional
map
step that iterates and creates yet another iterator
Attributes