scalax.io.traversable

ByteResourceTraversable

class ByteResourceTraversable extends LongTraversable[Byte] with LongTraversableLike[Byte, LongTraversable[Byte]]

resourceOpener must either be a InputStream or a ReadableByteChannel (or subclass). Anything else will throw an exception

Attributes
protected[scalax.io]
Self Type
ByteResourceTraversable
Linear Supertypes
LongTraversable[Byte], LongTraversableLike[Byte, LongTraversable[Byte]], Traversable[Byte], GenTraversable[Byte], GenericTraversableTemplate[Byte, LongTraversable], TraversableLike[Byte, LongTraversable[Byte]], GenTraversableLike[Byte, LongTraversable[Byte]], Parallelizable[Byte, ParIterable[Byte]], TraversableOnce[Byte], GenTraversableOnce[Byte], FilterMonadic[Byte, LongTraversable[Byte]], HasNewBuilder[Byte, scalax.io.LongTraversable[Byte] @scala.annotation.unchecked.uncheckedVariance], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ByteResourceTraversable
  2. LongTraversable
  3. LongTraversableLike
  4. Traversable
  5. GenTraversable
  6. GenericTraversableTemplate
  7. TraversableLike
  8. GenTraversableLike
  9. Parallelizable
  10. TraversableOnce
  11. GenTraversableOnce
  12. FilterMonadic
  13. HasNewBuilder
  14. AnyRef
  15. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ByteResourceTraversable(resourceOpener: ⇒ OpenedResource[Closeable], resourceContext: ResourceContext, sizeFunc: () ⇒ Option[Long], start: Long, end: Long, allowSeekable: Boolean)

Type Members

  1. type Self = LongTraversable[Byte]

    Attributes
    protected
    Definition Classes
    TraversableLike
  2. class WithFilter extends FilterMonadic[A, Repr]

    Definition Classes
    TraversableLike

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def ++[B >: Byte, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  5. def ++:[B >: Byte, That](that: Traversable[B])(implicit bf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike
  6. def ++:[B >: Byte, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    TraversableLike
  7. def /:[B](z: B)(op: (B, Byte) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  8. def :\[B](z: B)(op: (Byte, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  9. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  10. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  11. def addString(b: StringBuilder): StringBuilder

    Definition Classes
    TraversableOnce
  12. def addString(b: StringBuilder, sep: String): StringBuilder

    Definition Classes
    TraversableOnce
  13. def addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder

    Definition Classes
    TraversableOnce
  14. def aggregate[B](z: B)(seqop: (B, Byte) ⇒ B, combop: (B, B) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  15. def apply(idx: Long): Byte

    Selects an element by its index in the $coll.

    Selects an element by its index in the $coll.

    idx

    The index to select.

    returns

    the element of this $coll at index idx, where 0 indicates the first element.

    Definition Classes
    LongTraversableLike
    Exceptions thrown
    `IndexOutOfBoundsException`

    if idx does not satisfy 0 <= idx < length.

  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def async(implicit executionContext: ExecutionContext = scalax.io.executionContext): AsyncLongTraversable[Byte]

    Definition Classes
    LongTraversable
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def collect[B, That](pf: PartialFunction[Byte, B])(implicit bf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  20. def collectFirst[B](pf: PartialFunction[Byte, B]): Option[B]

    Definition Classes
    TraversableOnce
  21. def companion: GenericCompanion[LongTraversable]

    Definition Classes
    LongTraversable → Traversable → GenTraversable → GenericTraversableTemplate
  22. def containsSlice[B](that: Seq[B], start: Long): Boolean

    Tests whether this $coll contains a given sequence as a slice.

    Tests whether this $coll contains a given sequence as a slice. $mayNotTerminateInf

    that

    the sequence to test

    returns

    true if this $coll contains a slice with the same elements as that, otherwise false.

    Definition Classes
    LongTraversableLike
  23. def containsSlice[B](that: Seq[B]): Boolean

    Tests whether this $coll contains a given sequence as a slice.

    Tests whether this $coll contains a given sequence as a slice. $mayNotTerminateInf

    that

    the sequence to test

    returns

    true if this $coll contains a slice with the same elements as that, otherwise false.

    Definition Classes
    LongTraversableLike
  24. def context: ResourceContext

  25. def copyToArray[B >: Byte](xs: Array[B], start: Int, len: Int): Unit

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  26. def copyToArray[B >: Byte](xs: Array[B]): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  27. def copyToArray[B >: Byte](xs: Array[B], start: Int): Unit

    Definition Classes
    TraversableOnce → GenTraversableOnce
  28. def copyToBuffer[B >: Byte](dest: Buffer[B]): Unit

    Definition Classes
    TraversableOnce
  29. def corresponds[B](that: LongTraversable[B])(p: (Byte, B) ⇒ Boolean): Boolean

    Tests whether every element of this $coll relates to the corresponding element of another sequence by satisfying a test predicate.

    Tests whether every element of this $coll relates to the corresponding element of another sequence by satisfying a test predicate.

    B

    the type of the elements of that

    that

    the other sequence

    p

    the test predicate, which relates elements from both sequences

    returns

    true if both sequences have the same length and p(x, y) is true for all corresponding elements x of this $coll and y of that, otherwise false.

    Definition Classes
    LongTraversableLike
  30. def corresponds[B](that: Seq[B])(p: (Byte, B) ⇒ Boolean): Boolean

    Tests whether every element of this $coll relates to the corresponding element of another sequence by satisfying a test predicate.

    Tests whether every element of this $coll relates to the corresponding element of another sequence by satisfying a test predicate.

    B

    the type of the elements of that

    that

    the other sequence

    p

    the test predicate, which relates elements from both sequences

    returns

    true if both sequences have the same length and p(x, y) is true for all corresponding elements x of this $coll and y of that, otherwise false.

    Definition Classes
    LongTraversableLike
  31. def count(p: (Byte) ⇒ Boolean): Int

    Definition Classes
    TraversableOnce → GenTraversableOnce
  32. def drop(n: Int): LongTraversable[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  33. def dropWhile(p: (Byte) ⇒ Boolean): LongTraversable[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  34. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  36. def exists(p: (Byte) ⇒ Boolean): Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  37. def filter(p: (Byte) ⇒ Boolean): LongTraversable[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  38. def filterNot(p: (Byte) ⇒ Boolean): LongTraversable[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  39. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  40. def find(p: (Byte) ⇒ Boolean): Option[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  41. def flatMap[B, That](f: (Byte) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike → FilterMonadic
  42. def flatten[B](implicit asTraversable: (Byte) ⇒ GenTraversableOnce[B]): LongTraversable[B]

    Definition Classes
    GenericTraversableTemplate
  43. def fold[A1 >: Byte](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  44. def foldLeft[B](z: B)(op: (B, Byte) ⇒ B): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  45. def foldRight[B](z: B)(op: (Byte, B) ⇒ B): B

    Definition Classes
    LongTraversableLike → TraversableOnce → GenTraversableOnce
  46. def forall(p: (Byte) ⇒ Boolean): Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  47. def force: LongTraversable[Byte]

    Definition Classes
    LongTraversableLongTraversableLike
  48. def foreach[U](f: (Byte) ⇒ U): Unit

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
  49. def genericBuilder[B]: Builder[B, LongTraversable[B]]

    Definition Classes
    GenericTraversableTemplate
  50. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  51. def groupBy[K](f: (Byte) ⇒ K): Map[K, LongTraversable[Byte]]

    Definition Classes
    TraversableLike → GenTraversableLike
  52. def grouped[That](size: Int)(implicit bf: CanBuildFrom[LongTraversable[Byte], Seq[Byte], That]): That

    Partitions the data into fixed size blocks (same as sliding(size,size).

    Partitions the data into fixed size blocks (same as sliding(size,size).

    size

    the number of elements per group

    returns

    An LongTraversable producing Seqs of size size, except the last and the only element will be truncated if there are fewer elements than size.

    Definition Classes
    LongTraversableLike
  53. lazy val hasDefiniteSize: Boolean

    Definition Classes
    ByteResourceTraversableLongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  54. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  55. def head: Byte

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  56. def headOption: Option[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  57. def indexOf(elem: Byte, from: Int): Int

    [use case]

    [use case]
    elem

    the element value to search for.

    from

    the start index

    returns

    the index >= from of the first element of this $coll that is equal (wrt ==) to elem, or -1, if none exists.

    Definition Classes
    LongTraversableLike
    Full Signature

    def indexOf[B >: Byte](elem: B, from: Long): Long

  58. def indexOf(elem: Byte): Int

    [use case]

    [use case]
    elem

    the element value to search for.

    returns

    the index of the first element of this $coll that is equal (wrt ==) to elem, or -1, if none exists.

    Definition Classes
    LongTraversableLike
    Full Signature

    def indexOf[B >: Byte](elem: B): Long

  59. def indexOfSlice[B >: Byte](that: Seq[B], from: Long): Long

    Finds first index after or at a start index where this $coll contains a given sequence as a slice.

    Finds first index after or at a start index where this $coll contains a given sequence as a slice. $mayNotTerminateInf

    that

    the sequence to test

    from

    the start index

    returns

    the first index >= from such that the elements of this $coll starting at this index match the elements of sequence that, or -1 of no such subsequence exists.

    Definition Classes
    LongTraversableLike
  60. def indexOfSlice[B >: Byte](that: Seq[B]): Long

    Finds first index where this $coll contains a given sequence as a slice.

    Finds first index where this $coll contains a given sequence as a slice. $mayNotTerminateInf

    that

    the sequence to test

    returns

    the first index such that the elements of this $coll starting at this index match the elements of sequence that, or -1 of no such subsequence exists.

    Definition Classes
    LongTraversableLike
  61. def indexWhere(p: (Byte) ⇒ Boolean, from: Long): Long

    Finds index of the first element satisfying some predicate after or at some start index.

    Finds index of the first element satisfying some predicate after or at some start index.

    $mayNotTerminateInf

    p

    the predicate used to test elements.

    from

    the start index

    returns

    the index >= from of the first element of this $coll that satisfies the predicate p, or -1, if none exists.

    Definition Classes
    LongTraversableLike
  62. def indexWhere(p: (Byte) ⇒ Boolean): Long

    Definition Classes
    LongTraversableLike
  63. def init: LongTraversable[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  64. def inits: Iterator[LongTraversable[Byte]]

    Definition Classes
    TraversableLike
  65. def isDefinedAt(idx: Long): Boolean

    Definition Classes
    LongTraversableLike
  66. def isEmpty: Boolean

    Definition Classes
    LongTraversableLike → TraversableLike → TraversableOnce → GenTraversableOnce
  67. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  68. final def isTraversableAgain: Boolean

    Definition Classes
    TraversableLike → GenTraversableLike → GenTraversableOnce
  69. def iterator: Sliceable

    Attributes
    protected[scalax.io]
    Definition Classes
    ByteResourceTraversableLongTraversableLike
  70. def last: Byte

    Definition Classes
    TraversableLike → GenTraversableLike
  71. def lastIndexOf(elem: Byte, end: Int): Int

    [use case]

    [use case]
    elem

    the element value to search for.

    end

    the end index.

    returns

    the index <= end of the last element of this $coll that is equal (wrt ==) to elem, or -1, if none exists.

    Definition Classes
    LongTraversableLike
    Full Signature

    def lastIndexOf[B >: Byte](elem: B, end: Long): Long

  72. def lastIndexOf(elem: Byte): Int

    [use case]

    [use case]
    elem

    the element value to search for.

    returns

    the index of the last element of this $coll that is equal (wrt ==) to elem, or -1, if none exists.

    Definition Classes
    LongTraversableLike
    Full Signature

    def lastIndexOf[B >: Byte](elem: B): Long

  73. def lastIndexWhere(p: (Byte) ⇒ Boolean, end: Long): Long

    Finds index of last element satisfying some predicate before or at given end index.

    Finds index of last element satisfying some predicate before or at given end index.

    Always takes linear time and traverses entire traversal

    p

    the predicate used to test elements.

    returns

    the index <= end of the last element of this $coll that satisfies the predicate p, or -1, if none exists.

    Definition Classes
    LongTraversableLike
  74. def lastIndexWhere(p: (Byte) ⇒ Boolean): Long

    Finds index of last element satisfying some predicate.

    Finds index of last element satisfying some predicate.

    $willNotTerminateInf

    p

    the predicate used to test elements.

    returns

    the index of the last element of this $coll that satisfies the predicate p, or -1, if none exists.

    Definition Classes
    LongTraversableLike
  75. def lastOption: Option[Byte]

    Definition Classes
    TraversableLike → GenTraversableLike
  76. def lcount(p: (Byte) ⇒ Boolean): Long

    Definition Classes
    LongTraversableLike
  77. def ldrop(n: Long): LongTraversable[Byte]

    The long equivalent of Traversable.

    The long equivalent of Traversable.drop

    Definition Classes
    LongTraversableLike
  78. def limitFold[U](init: U)(op: (U, Byte) ⇒ FoldResult[U]): U

    A foldLeft operation that can be terminated without processing the entire collection.

    A foldLeft operation that can be terminated without processing the entire collection.

    Unlike a normal fold, the function passed to limitFold returns a scalax.io.FoldResult which both provides the value that is to be passed to the next stage of the fold as well as represents if the fold should continue or terminate.

    init

    the value to seed the operation with. IE the value that is passed as the accumulator for the first value of the fold operation

    op

    the operation that combines the current and previous versions. The input is the (acc,next) where acc is the result from the previous call and next is the next value in the collection to be processed. The return value of the op is Either scalax.io.Continue or scalax.io.End indicating if the process should continue to next element or terminate, returning the value contained in the result object

    returns

    the last value contained in the scalax.io.FoldResult which was returned by op

    Definition Classes
    LongTraversableLike
  79. def lsize: Long

    The long equivalent of Traversable.

    The long equivalent of Traversable.size

    NOT recommended for use since it might trigger a full traversal of the traversable

    Definition Classes
    ByteResourceTraversableLongTraversableLike
  80. def lslice(from: Long, until: Long): LongTraversable[Byte]

    Definition Classes
    LongTraversableLike
  81. def lsplitAt(n: Long): (LongTraversable[Byte], LongTraversable[Byte])

    The long equivalent of Traversable.

    The long equivalent of Traversable.splitAt

    Definition Classes
    LongTraversableLike
  82. def ltake(n: Long): LongTraversable[Byte]

    The long equivalent of Traversable.

    The long equivalent of Traversable.take

    Definition Classes
    LongTraversableLike
  83. def map[B, That](f: (Byte) ⇒ B)(implicit bf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike → FilterMonadic
  84. def max[B >: Byte](implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  85. def maxBy[B](f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  86. def min[B >: Byte](implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  87. def minBy[B](f: (Byte) ⇒ B)(implicit cmp: Ordering[B]): Byte

    Definition Classes
    TraversableOnce → GenTraversableOnce
  88. def mkString: String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  89. def mkString(sep: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  90. def mkString(start: String, sep: String, end: String): String

    Definition Classes
    TraversableOnce → GenTraversableOnce
  91. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  92. def newBuilder: LongTraversableBuilder[Byte, LongTraversable[Byte]]

    Attributes
    protected[this]
    Definition Classes
    LongTraversable → GenericTraversableTemplate → TraversableLike → HasNewBuilder
  93. def nonEmpty: Boolean

    Definition Classes
    TraversableOnce → GenTraversableOnce
  94. final def notify(): Unit

    Definition Classes
    AnyRef
  95. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  96. def par: ParIterable[Byte]

    Definition Classes
    Parallelizable
  97. def parCombiner: Combiner[Byte, ParIterable[Byte]]

    Attributes
    protected[this]
    Definition Classes
    TraversableLike → Parallelizable
  98. def partition(p: (Byte) ⇒ Boolean): (LongTraversable[Byte], LongTraversable[Byte])

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  99. def prefixLength(p: (Byte) ⇒ Boolean): Long

    Returns the length of the longest prefix whose elements all satisfy some predicate.

    Returns the length of the longest prefix whose elements all satisfy some predicate.

    p

    the predicate used to test elements.

    returns

    the length of the longest prefix of this $coll such that every element of the segment satisfies the predicate p.

    Definition Classes
    LongTraversableLike
  100. def processor: CloseableIteratorProcessor[Byte]

    Create a processor that provides an API for declaring a processing pipeline of this LongTraversable in a very flexible way.

    Create a processor that provides an API for declaring a processing pipeline of this LongTraversable in a very flexible way.

    returns

    a processor for processing a LongTraversable

    Definition Classes
    LongTraversableLike
  101. def product[B >: Byte](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  102. def reduce[A1 >: Byte](op: (A1, A1) ⇒ A1): A1

    Definition Classes
    TraversableOnce → GenTraversableOnce
  103. def reduceLeft[B >: Byte](op: (B, Byte) ⇒ B): B

    Definition Classes
    TraversableOnce
  104. def reduceLeftOption[B >: Byte](op: (B, Byte) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  105. def reduceOption[A1 >: Byte](op: (A1, A1) ⇒ A1): Option[A1]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  106. def reduceRight[B >: Byte](op: (Byte, B) ⇒ B): B

    Definition Classes
    LongTraversableLike → TraversableOnce → GenTraversableOnce
  107. def reduceRightOption[B >: Byte](op: (Byte, B) ⇒ B): Option[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  108. def repr: LongTraversable[Byte]

    Definition Classes
    TraversableLike → GenTraversableLike
  109. def reversed: List[Byte]

    Attributes
    protected[this]
    Definition Classes
    TraversableOnce
  110. def sameElements[B >: Byte](that: LongTraversable[B]): Boolean

    Definition Classes
    LongTraversableLike
  111. def sameElements[B >: Byte](that: Iterable[B]): Boolean

    Definition Classes
    LongTraversableLike
  112. def scan[B >: Byte, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  113. def scanLeft[B, That](z: B)(op: (B, Byte) ⇒ B)(implicit bf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
  114. def scanRight[B, That](z: B)(op: (Byte, B) ⇒ B)(implicit bf: CanBuildFrom[LongTraversable[Byte], B, That]): That

    Definition Classes
    TraversableLike → GenTraversableLike
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) The behavior of scanRight has changed. The previous behavior can be reproduced with scanRight.reverse.

  115. def segmentLength(p: (Byte) ⇒ Boolean, from: Long = 0): Long

    Computes length of longest segment whose elements all satisfy some predicate.

    Computes length of longest segment whose elements all satisfy some predicate.

    p

    the predicate used to test elements.

    from

    the index where the search starts.

    returns

    the length of the longest segment of this $coll starting from index from such that every element of the segment satisfies the predicate p.

    Definition Classes
    LongTraversableLike
  116. def seq: Traversable[Byte]

    Definition Classes
    Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
  117. def size: Int

    Definition Classes
    LongTraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce
  118. def slice(from: Int, until: Int): LongTraversable[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  119. def sliding[That](size: Int, step: Int = 1)(implicit bf: CanBuildFrom[LongTraversable[Byte], Seq[Byte], That]): That

    Groups elements in fixed size blocks by passing a "sliding window" over them.

    Groups elements in fixed size blocks by passing a "sliding window" over them.

    This is based on Iterator#sliding but does not return an iterator to ensure that a resource is not left open.

    size

    the number of elements per group

    step

    the distance between the first elements of successive groups (defaults to 1)

    returns

    An LongTraversable producing Seqs of size size, except the last and the only element will be truncated if there are fewer elements than size.

    Definition Classes
    LongTraversableLike
  120. def span(p: (Byte) ⇒ Boolean): (LongTraversable[Byte], LongTraversable[Byte])

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  121. def splitAt(n: Int): (LongTraversable[Byte], LongTraversable[Byte])

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  122. def startsWith[B](that: Seq[B]): Boolean

    Tests whether this $coll starts with the given sequence.

    Tests whether this $coll starts with the given sequence.

    that

    the sequence to test

    returns

    true if this collection has that as a prefix, false otherwise.

    Definition Classes
    LongTraversableLike
  123. def startsWith[B](that: Seq[B], offset: Long): Boolean

    Tests whether this $coll contains the given sequence at a given index.

    Tests whether this $coll contains the given sequence at a given index.

    If the both the receiver object, this and the argument, that are infinite sequences this method may not terminate.

    that

    the sequence to test

    offset

    the index where the sequence is searched.

    returns

    true if the sequence that is contained in this $coll at index offset, otherwise false.

    Definition Classes
    LongTraversableLike
  124. def startsWith[B](that: LongTraversable[B]): Boolean

    Tests whether this $coll starts with the given sequence.

    Tests whether this $coll starts with the given sequence.

    that

    the sequence to test

    returns

    true if this collection has that as a prefix, false otherwise.

    Definition Classes
    LongTraversableLike
  125. def startsWith[B](that: LongTraversable[B], offset: Long): Boolean

    Tests whether this $coll contains the given sequence at a given index.

    Tests whether this $coll contains the given sequence at a given index.

    If the both the receiver object, this and the argument, that are infinite sequences this method may not terminate.

    that

    the sequence to test

    offset

    the index where the sequence is searched.

    returns

    true if the sequence that is contained in this $coll at index offset, otherwise false.

    Definition Classes
    LongTraversableLike
  126. def stringPrefix: String

    Definition Classes
    TraversableLike → GenTraversableLike
  127. def sum[B >: Byte](implicit num: Numeric[B]): B

    Definition Classes
    TraversableOnce → GenTraversableOnce
  128. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  129. def tail: LongTraversable[Byte]

    Definition Classes
    TraversableLike → GenTraversableLike
  130. def tails: Iterator[LongTraversable[Byte]]

    Definition Classes
    TraversableLike
  131. def take(n: Int): LongTraversable[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  132. def takeWhile(p: (Byte) ⇒ Boolean): LongTraversable[Byte]

    Definition Classes
    LongTraversableLike → TraversableLike → GenTraversableLike
  133. def thisCollection: LongTraversable[Byte]

    Attributes
    protected[this]
    Definition Classes
    LongTraversableLike → TraversableLike
  134. def to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Byte, Col[Byte]]): Col[Byte]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  135. def toArray[B >: Byte](implicit arg0: ClassTag[B]): Array[B]

    Definition Classes
    ByteResourceTraversableLongTraversableLike → TraversableOnce → GenTraversableOnce
  136. def toBuffer[B >: Byte]: Buffer[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  137. def toCollection(repr: LongTraversable[Byte]): LongTraversable[Byte]

    Attributes
    protected[this]
    Definition Classes
    LongTraversableLike → TraversableLike
  138. def toIndexedSeq: IndexedSeq[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  139. def toIterable: Iterable[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  140. def toIterator: Iterator[Byte]

    Definition Classes
    TraversableLike → GenTraversableOnce
  141. def toList: List[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  142. def toMap[T, U](implicit ev: <:<[Byte, (T, U)]): Map[T, U]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  143. def toSeq: Seq[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  144. def toSet[B >: Byte]: Set[B]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  145. def toStream: Stream[Byte]

    Definition Classes
    TraversableLike → GenTraversableOnce
  146. def toString(): String

    Definition Classes
    LongTraversable → TraversableLike → AnyRef → Any
  147. def toTraversable: Traversable[Byte]

    Definition Classes
    TraversableLike → TraversableOnce → GenTraversableOnce
  148. def toVector: Vector[Byte]

    Definition Classes
    TraversableOnce → GenTraversableOnce
  149. def transpose[B](implicit asTraversable: (Byte) ⇒ GenTraversableOnce[B]): LongTraversable[LongTraversable[B]]

    Definition Classes
    GenericTraversableTemplate
    Annotations
    @migration
    Migration

    (Changed in version 2.9.0) transpose throws an IllegalArgumentException if collections are not uniformly sized.

  150. def unzip[A1, A2](implicit asPair: (Byte) ⇒ (A1, A2)): (LongTraversable[A1], LongTraversable[A2])

    Definition Classes
    GenericTraversableTemplate
  151. def unzip3[A1, A2, A3](implicit asTriple: (Byte) ⇒ (A1, A2, A3)): (LongTraversable[A1], LongTraversable[A2], LongTraversable[A3])

    Definition Classes
    GenericTraversableTemplate
  152. def view(from: Int, until: Int): TraversableView[Byte, LongTraversable[Byte]]

    Definition Classes
    TraversableLike
  153. def view: TraversableView[Byte, LongTraversable[Byte]]

    Definition Classes
    TraversableLike
  154. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  155. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  156. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  157. def withFilter(p: (Byte) ⇒ Boolean): FilterMonadic[Byte, LongTraversable[Byte]]

    Definition Classes
    TraversableLike → FilterMonadic
  158. def withIterator[U](f: (CloseableIterator[Byte]) ⇒ U): U

    Use the underlying iterator for this traversable.

    Use the underlying iterator for this traversable.

    Definition Classes
    LongTraversableLike
    Exceptions thrown
    AssertionError

    if the iterator is returned

    Note

    withIterator catches all exceptions and calls the error handler to handle the exceptions So exceptions must not be thrown in f as control flow exceptions.

    ,

    If the iterator is returned from this block an exception will be thrown because the iterator is invalid outside of this block and the behaviour is undefined

  159. def zip[B, A1 >: Byte, That](that: LongTraversable[B])(implicit bf: LongTraversableBuilder[(A1, B), That]): That

    Returns a $coll formed from this $coll and another iterable collection by combining corresponding elements in pairs.

    Returns a $coll formed from this $coll and another iterable collection by combining corresponding elements in pairs. If one of the two collections is longer than the other, its remaining elements are ignored.

    B

    the type of the second half of the returned pairs

    that

    The iterable providing the second half of each result pair

    returns

    a new collection of type That containing pairs consisting of corresponding elements of this $coll and that. The length of the returned collection is the minimum of the lengths of this $coll and that.

    Definition Classes
    LongTraversableLike
  160. def zip[B, A1 >: Byte, That](that: Iterable[B])(implicit bf: LongTraversableBuilder[(A1, B), That]): That

    Returns a $coll formed from this $coll and another iterable collection by combining corresponding elements in pairs.

    Returns a $coll formed from this $coll and another iterable collection by combining corresponding elements in pairs. If one of the two collections is longer than the other, its remaining elements are ignored.

    B

    the type of the second half of the returned pairs

    that

    The iterable providing the second half of each result pair

    returns

    a new collection of type That containing pairs consisting of corresponding elements of this $coll and that. The length of the returned collection is the minimum of the lengths of this $coll and that.

    Definition Classes
    LongTraversableLike
  161. def zipAll[B, A1 >: Byte, That](that: LongTraversable[B], thisElem: A1, thatElem: B)(implicit bf: LongTraversableBuilder[(A1, B), That]): That

    Returns a $coll formed from this $coll and another iterable collection by combining corresponding elements in pairs.

    Returns a $coll formed from this $coll and another iterable collection by combining corresponding elements in pairs. If one of the two collections is shorter than the other, placeholder elements are used to extend the shorter collection to the length of the longer.

    $orderDependent

    B

    the type of the second half of the returned pairs

    that

    the iterable providing the second half of each result pair

    thisElem

    the element to be used to fill up the result if this $coll is shorter than that.

    thatElem

    the element to be used to fill up the result if that is shorter than this $coll.

    returns

    a new collection of type That containing pairs consisting of corresponding elements of this $coll and that. The length of the returned collection is the maximum of the lengths of this $coll and that. If this $coll is shorter than that, thisElem values are used to pad the result. If that is shorter than this $coll, thatElem values are used to pad the result.

    Definition Classes
    LongTraversableLike
  162. def zipAll[B, A1 >: Byte, That](that: Iterable[B], thisElem: A1, thatElem: B)(implicit bf: LongTraversableBuilder[(A1, B), That]): That

    Returns a $coll formed from this $coll and another iterable collection by combining corresponding elements in pairs.

    Returns a $coll formed from this $coll and another iterable collection by combining corresponding elements in pairs. If one of the two collections is shorter than the other, placeholder elements are used to extend the shorter collection to the length of the longer.

    $orderDependent

    B

    the type of the second half of the returned pairs

    that

    the iterable providing the second half of each result pair

    thisElem

    the element to be used to fill up the result if this $coll is shorter than that.

    thatElem

    the element to be used to fill up the result if that is shorter than this $coll.

    returns

    a new collection of type That containing pairs consisting of corresponding elements of this $coll and that. The length of the returned collection is the maximum of the lengths of this $coll and that. If this $coll is shorter than that, thisElem values are used to pad the result. If that is shorter than this $coll, thatElem values are used to pad the result.

    Definition Classes
    LongTraversableLike
  163. def zipWithIndex: <error>

    [use case]

    [use case]
    returns

    A new $coll containing pairs consisting of all elements of this $coll paired with their index. Indices start at 0.

    Definition Classes
    LongTraversableLike
    Full Signature

    def zipWithIndex[A1 >: Byte, That](implicit bf: LongTraversableBuilder[(A1, Int), That]): That

    Example:
    1. List("a", "b", "c").zipWithIndex = List(("a", 0), ("b", 1), ("c", 2))

Deprecated Value Members

  1. def /:\[A1 >: Byte](z: A1)(op: (A1, A1) ⇒ A1): A1

    Definition Classes
    GenTraversableOnce
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) use fold instead

Inherited from LongTraversable[Byte]

Inherited from LongTraversableLike[Byte, LongTraversable[Byte]]

Inherited from Traversable[Byte]

Inherited from GenTraversable[Byte]

Inherited from GenericTraversableTemplate[Byte, LongTraversable]

Inherited from TraversableLike[Byte, LongTraversable[Byte]]

Inherited from GenTraversableLike[Byte, LongTraversable[Byte]]

Inherited from Parallelizable[Byte, ParIterable[Byte]]

Inherited from TraversableOnce[Byte]

Inherited from GenTraversableOnce[Byte]

Inherited from FilterMonadic[Byte, LongTraversable[Byte]]

Inherited from HasNewBuilder[Byte, scalax.io.LongTraversable[Byte] @scala.annotation.unchecked.uncheckedVariance]

Inherited from AnyRef

Inherited from Any

Ungrouped