trait Preview[A] extends AnyRef
Ordering
- Alphabetic
Inherited
- Preview
- scala.AnyRef
- scala.Any
- Hide All
- Show All
Visibility
- Public
- All
Method
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @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] )
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
abstract
def
preview(cnt: Int): ~[A]
Preview multiple elements
-
abstract
def
previewNextOpt: Opt[A]
Preview next element
Preview next element
Optionally returns next element, which can be primed and pumped
- Definition Classes
- Preview
-
abstract
def
previewSize: Int
Preview element count
Preview element count
If metadata sizeOpt is not empty, the value is returned
Otherwise calls
primeAll
- Definition Classes
- Preview
-
abstract
def
previewSizeAtLeast(cnt: Int): Boolean
Checks size up to a limit
Checks size up to a limit
Retuns true if the element count is equal or exceeding the specified
If metadata sizeOpt is not empty, the value is tested
Otherwise, tries to
prime
requested number of elements- Definition Classes
- Preview
-
abstract
def
prime(cnt: Int): Int
Requests to get several elements ready
-
def
primeAll: Int
Requests to get all elements ready
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
abstract
def
takeWhile(f: Filter[A]): ~[A]
Stream while
-
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
- @throws( ... )
Preview is an extension of Stream with preview capabilities
It allows pre-load and inspect elements before they are pumped
Preview is created with a Stream.preview method
Note. If Stream.typeOpt is void, after switching into preview mode typeOpt will return type determined by the preview of the first element or void if there is none