trait Indexed[A] extends Stream.A.Basic.Defaults[A] with Stream.Interface.Preview[A]
- Self Type
- Stream.Interface.Indexed[A] with Stream[A] with Stream.Interface.Preview[A]
Ordering
- Alphabetic
Inherited
- Indexed
- Stream.Interface.Preview
- Stream.A.Basic.Defaults
- scala.AnyRef
- scala.Any
- Hide All
- Show All
Visibility
- Public
- All
Constant
-
val
_position: Int
- Attributes
- protected[scalqa.Stream]
- Definition Classes
- Indexed
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] )
-
abstract
def
foreach(f: Consumer[A]): Unit
Foreach override
Foreach override
foreach is the most widely used Stream method, which largely determines general performance
Default implementation looks like
def foreach(c: Stream.Consumer[A]) = while (prime) c.accept(pump)
If custom Stream can do better, this method should be overridden
- Definition Classes
- Defaults
-
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
-
def
preview(cnt: Int): ~[A]
Preview multiple elements
-
def
previewNextOpt: Opt[A]
Preview next element
-
def
previewSize: Int
Preview element count
-
def
previewSizeAtLeast(cnt: Int): Boolean
Checks size up to a limit
-
def
prime(cnt: Int): Int
Requests to get several elements ready
-
def
prime: Boolean
- Definition Classes
- Indexed
-
def
primeAll: Int
Requests to get all elements ready
-
def
sizeOpt: Opt.Int
Current size option
-
def
sortedOpt: Opt[Comparator[A]]
Current sorted option
Current sorted option
By default sortedOpt returns Opt.Void
If custom Stream is sorted, return the Ordering
- Definition Classes
- Defaults
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
takeWhile(f: Filter[A]): ~[A]
Stream while
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
typeOpt: Opt[Util.Specialized.Type]
Data type option
Data type option
By default typeOpt returns Opt.Void
All customized bases (like Stream.A.Chars)) return appropriate type
-
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( ... )