A class supporting filtered operations
Append given object to this buffer, returns reference on this NodeBuffer for convenience
Adds two or more elements to this collection and returns the collection itself
Adds a single element to this collection and returns the collection itself
Adds a number of elements provided by an iterator and returns the collection itself
Adds a number of elements provided by a traversable object and returns either the collection itself
[use case] Concatenates this buffer with the elements of an iterator
Concatenates this buffer with the elements of an iterator
[use case] Concatenates this buffer with the elements of a traversable collection
Concatenates this buffer with the elements of a traversable collection
Appends a number of elements provided by an iterable object
via its iterator
method
Adds a number of elements in an array
Appends all elements produced by an iterator to this buffer
Prepends a number of elements provided by an iterable object
via its iterator
method
Prepends the elements produced by an iterator to this buffer
[use case] Prepends an element to this buffer
Prepends an element to this buffer
Appends a single element to this buffer and returns the identity of the buffer
Appends two or more elements to this buffer
Prepends a single element to this buffer and return the identity of the buffer
Removes two or more elements from this collection and returns the collection itself
Removes a single element from this collection and returns the collection itself
Removes a number of elements provided by an iterator and returns the collection itself
Removes a number of elements provided by a Traversable object and returns the collection itself
Removes all elements contained in a traversable collection from this buffer
Removes all elements produced by an iterator from this buffer
Removes a single element from this buffer, at its first occurrence
Removes two or more elements from this buffer
Applies a binary operator to a start value and all elements of this buffer, going left to right
[use case] Appends an element to this buffer
Appends an element to this buffer
Applies a binary operator to all elements of this buffer and a start value, going right to left
Send a message to this scriptable object
Appends all elements of this buffer to a string builder
Appends all elements of this buffer to a string builder using a separator string
Appends all elements of this buffer to a string builder using start, end, and separator strings
Composes this partial function with a transformation function that gets applied to results of this partial function
Appends the given elements to this buffer
Appends the elements produced by an iterator to this buffer
Appends the elements contained in a traversable collection to this buffer
Selects an element by its index in the buffer
Method called from equality methods, so that user-defined subclasses can refuse to be equal to other collections of the same kind
Clears the contents of this builder
Return a clone of this buffer
The factory companion object that builds instances of class Buffer
(f compose g)(x) == f(g(x))
Tests whether this buffer contains a given value as an element
Tests whether this buffer contains a given sequence as a slice
Fills the given array xs
with at most len
elements of
this traversable starting at position start
[use case] Copies elements of this buffer to an array
Copies elements of this buffer to an array
[use case] Copies elements of this buffer to an array
Copies elements of this buffer to an array
Copies all elements of this buffer to a buffer
Tests whether every element of this buffer relates to the corresponding element of another sequence by satisfying a test predicate
Counts the number of elements in the buffer which satisfy a predicate
Computes the multiset difference between this buffer and another sequence
Selects all elements except first n ones
Selects all elements except first n ones
Drops longest prefix of elements that satisfy a predicate
Tests whether this buffer ends with the given sequence
The equality method defined in AnyRef
Tests whether every element of this buffer relates to the corresponding element of another sequence by satisfying a test predicate
Tests whether a predicate holds for some of the elements of this buffer
Selects all elements of this buffer which satisfy a predicate
Selects all elements of this buffer which do not satisfy a predicate
Finds the first element of the buffer satisfying a predicate, if any
Returns index of the first element satisying a predicate, or -1
Returns index of the last element satisying a predicate, or -1
None
if iterable is empty
[use case] Builds a new collection by applying a function to all elements of this buffer and concatenating the results
Builds a new collection by applying a function to all elements of this buffer and concatenating the results
[use case] Converts this buffer of traversable collections into a buffer in which all element collections are concatenated
Converts this buffer of traversable collections into a buffer in which all element collections are concatenated
Applies a binary operator to a start value and all elements of this buffer, going left to right
Applies a binary operator to all elements of this buffer and a start value, going right to left
Tests whether a predicate holds for all elements of this buffer
[use case] Applies a function f
to all elements of this buffer
Applies a function f
to all elements of this buffer
The generic builder that builds instances of Buffer at arbitrary element types
Partitions this buffer into a map of buffers according to some discriminator function
Partitions elements in fixed size buffers
Tests whether this buffer is known to have a finite size
Hashcodes for Buffer produce a value from the hashcodes of all the elements of the buffer
Selects the first element of this buffer
Optionally selects the first element
[use case] Finds index of first occurrence of some value in this buffer after or at some start index
Finds index of first occurrence of some value in this buffer after or at some start index
[use case] Finds index of first occurrence of some value in this buffer
Finds index of first occurrence of some value in this buffer
Finds first index after or at a start index where this buffer contains a given sequence as a slice
Finds first index where this buffer contains a given sequence as a slice
Finds index of the first element satisfying some predicate after or at some start index
Finds index of first element satisfying some predicate
Produces the range of all indices of this sequence
Selects all elements except the last
Inserts new elements at a given index into this buffer
Inserts new elements at the index n
Computes the multiset intersection between this buffer and another sequence
Tests whether this buffer contains given index
Tests whether this buffer is empty
Creates a new iterator over all elements contained in this iterable object
Selects the last element
[use case] Finds index of last occurrence of some value in this buffer before or at a given end index
Finds index of last occurrence of some value in this buffer before or at a given end index
[use case] Finds index of last occurrence of some value in this buffer
Finds index of last occurrence of some value in this buffer
Finds last index before or at a given end index where this buffer contains a given sequence as a slice
Finds last index where this buffer contains a given sequence as a slice
Finds index of last element satisfying some predicate before or at given end index
Finds index of last element satisfying some predicate
Optionally selects the last element
Returns the length of this resizable array
Compares the length of this buffer to a test value
Turns this partial function into an plain function returning an Option
result
[use case] Builds a new collection by applying a function to all elements of this buffer
Builds a new collection by applying a function to all elements of this buffer
Creates a new builder by applying a transformation function to the results of this builder
Finds the largest element
[use case] Finds the largest element
[use case] Finds the smallest element
Finds the smallest element
Displays all elements of this buffer in a string
Displays all elements of this buffer in a string using a separator string
Displays all elements of this buffer in a string using start, end, and separator strings
Tests whether the buffer is not empty
Composes this partial function with a fallback partial function which gets applied where this partial function is not defined
[use case] Appends an element value to this buffer until a given target length is reached
Appends an element value to this buffer until a given target length is reached
[use case] Builds a new collection by applying a partial function to all elements of this buffer on which the function is defined
Builds a new collection by applying a partial function to all elements of this buffer on which the function is defined
Partitions this buffer in two buffers according to a predicate
[use case] Produces a new buffer where a slice of elements in this buffer is replaced by another sequence
Produces a new buffer where a slice of elements in this buffer is replaced by another sequence
Returns the length of the longest prefix whose elements all satisfy some preficate
Prepends given elements to this buffer
Prepends a number of elements produced by an iterator to this buffer
Prepends the elements contained in a traversable collection to this buffer
[use case] Multiplies up the elements of this collection
Multiplies up the elements of this collection
returns a projection that can be used to call non-strict filter
,
map
, and flatMap
methods that build projections
of the collection
Provide a read-only view of this byffer as a sequence
Applies a binary operator to all elements of this buffer, going left to right
Optionally applies a binary operator to all elements of this buffer, going left to right
Applies a binary operator to all elements of this buffer, going right to left
Optionally applies a binary operator to all elements of this buffer, going right to left
remove elements of this array at indices after sz
Removes the element on a given index position
Removes the element on a given index position
Builds a new buffer from this buffer without any duplicate elements
The collection of type buffer underlying this TraversableLike
object
Produces a collection from the added elements
Returns new buffer wih elements in reversed order
An iterator yielding elements in reversed order
[use case] Builds a new collection by applying a function to all elements of this buffer and collecting the results in reversed order
Builds a new collection by applying a function to all elements of this buffer and collecting the results in reversed order
[use case] Checks if the other iterable collection contains the same elements in the same order as this buffer
Checks if the other iterable collection contains the same elements in the same order as this buffer
Computes length of longest segment whose elements all satisfy some preficate
The size of this buffer, equivalent to length
Gives a hint how many elements are expected to be added
when the next result
is called
Selects an interval of elements
Groups elements in fixed size blocks by passing a "sliding window" over them (as opposed to partitioning them, as is done in grouped
Sorts this Buffer according to the Ordering which results from transforming an implicitly given Ordering with a transformation function
Sorts this buffer according to an Ordering
Sorts this buffer according to a comparison function
Spits this buffer into a prefix/suffix pair according to a predicate
Splits this buffer into two at a given position
Tests whether this buffer contains the given sequence at a given index
Tests whether this buffer starts with the given sequence
Defines the prefix of the string representation
[use case] Sums up the elements of this collection
Sums up the elements of this collection
Selects all elements except the first
Selects first n elements
Selects last n elements
Takes longest prefix of elements that satisfy a predicate
[use case] Converts this buffer to an array
Converts this buffer to an array
Converts this buffer to an indexed sequence
Converts this buffer to an iterable collection
Converts this buffer to a list
Converts this buffer to a map
Converts this buffer to a sequence
Converts this buffer to a set
Converts this buffer to a stream
Converts this buffer to a string
Transposes this buffer of traversable collections into
Removes the last n elements of this buffer
Removes the first n elements of this buffer
[use case] Computes the multiset intersection between this buffer and another sequence
[use case] Computes the multiset difference between this buffer and another sequence
[use case] Produces a new sequence which contains all elements of this buffer and also all elements of a given sequence
Produces a new sequence which contains all elements of this buffer and also all elements of a given sequence
Converts this buffer of pairs into two collections of the first and second halfs of each pair
Replaces element at given index with a new value
[use case] A copy of this buffer with one single replaced element
A copy of this buffer with one single replaced element
A sub-sequence view starting at index from
and extending up to (but not including) index until
Creates a view of this iterable @see Iterable
Creates a non-strict filter of this buffer
[use case] Returns a buffer formed from this buffer and another iterable collection by combining corresponding elements in pairs
Returns a buffer formed from this buffer and another iterable collection by combining corresponding elements in pairs
[use case] Returns a buffer formed from this buffer and another iterable collection by combining corresponding elements in pairs
Returns a buffer formed from this buffer and another iterable collection by combining corresponding elements in pairs
[use case] Zips this buffer with its indices
Zips this buffer with its indices
This class acts as a Buffer for nodes. If it is used as a sequence of nodes
Seq[Node]
, it must be ensured that no updates occur after that point, becausescala.xml.Node
is assumed to be immutable.Despite this being a sequence, don't use it as key in a hashtable. Calling the hashcode function will result in a runtime error.