object CloseableIterator
- Alphabetic
- By Inheritance
- CloseableIterator
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- class CloseableIteratorBuilder[A] extends Builder[A, CloseableIterator[A]]
- implicit class IterableConstruction[+A] extends AnyRef
- implicit class IteratorConstruction[+A] extends AnyRef
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
- implicit def CloseableIteratorCanBuildFrom[A]: CanBuildFrom[Iterable[_ <: A], A, CloseableIterator[A]]
- implicit def CloseableIteratorCanBuildFromOther[A]: CanBuildFrom[CloseableIterator[_], A, CloseableIterator[A]]
-
def
apply[A](iterator: Iterator[A], closeable: Closeable): CloseableIterator[A]
Construct a $closeableIterator that iterates over the given iterator and closes the given resource.
Construct a $closeableIterator that iterates over the given iterator and closes the given resource.
- iterator
the underlying $iterator over which the $closeableIterator will iterate
- closeable
the resource to which the $close call will be delegated
-
def
apply[A](iterator: Iterator[A], closeable: AnyRef { def close(): Unit }): CloseableIterator[A]
Construct a $closeableIterator that iterates over the given iterator and closes the given resource.
Construct a $closeableIterator that iterates over the given iterator and closes the given resource. Note that instances created with this method will invoke the $close method via reflection. Where possible, use the
applymethod that accepts a $closeable.- iterator
the underlying $iterator over which the $closeableIterator will iterate
- closeable
an object that exposes a
close()method which will be invoked when the $closeableIterator is closed.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
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
-
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()
-
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( ... )
-
def
withoutResource[A](iterator: Iterator[A]): CloseableIterator[A]
Construct a $closeableIterator that iterates over the given iterator, with a no-op implementation of the $close method.
Construct a $closeableIterator that iterates over the given iterator, with a no-op implementation of the $close method.
- iterator
the underlying $iterator over which the $closeableIterator will iterate