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.
Creates a new collection containing both the elements of this collection and the provided traversable object.
[use case] Concatenates this arraybuffer with the elements of a traversable collection.
Concatenates this arraybuffer with the elements of a traversable collection.
This method prepends elements to the buffer and returns the same buffer.
Appends a number of elements provided by a traversable object.
Adds a number of elements in an array
Prepends a number of elements provided by a traversable object.
This method prepends elements to the buffer and returns the same buffer.
[use case] Prepends an element to this arraybuffer
Prepends an element to this arraybuffer
Appends a single element to this buffer and returns the identity of the buffer.
Appends two or more elements to this arraybuffer.
Prepends a single element to this buffer and returns the identity of the buffer.
Creates a new collection with all the elements of this collection except the two or more specified elements.
Creates a new collection with all the elements of this collection except elem
.
Creates a new collection with all the elements of this collection except those provided by the specified traversable object.
Removes all elements produced by an iterator from this arraybuffer.
Removes a single element from this buffer, at its first occurrence.
Removes two or more elements from this arraybuffer.
Applies a binary operator to a start value and all elements of this arraybuffer, going left to right.
[use case] Appends an element to this arraybuffer
Appends an element to this arraybuffer
Applies a binary operator to all elements of this arraybuffer and a start value, going right to left.
Send a message to this scriptable object.
Appends all elements of this arraybuffer to a string builder.
Appends all elements of this arraybuffer to a string builder using a separator string.
Appends all elements of this arraybuffer 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 contained in a traversable object to this buffer.
Selects an element by its index in the arraybuffer.
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.
[use case] Builds a new collection by applying a partial function to all elements of this arraybuffer on which the function is defined.
Builds a new collection by applying a partial function to all elements of this arraybuffer on which the function is defined.
The factory companion object that builds instances of class ArrayBuffer.
(f compose g)(x) == f(g(x))
Tests whether this arraybuffer contains a given value as an element.
Tests whether this arraybuffer 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 values of this arraybuffer to an array.
Copies values of this arraybuffer to an array.
[use case] Copies values of this arraybuffer to an array.
Copies values of this arraybuffer to an array.
Copies all elements of this arraybuffer to a buffer.
Tests whether every element of this arraybuffer relates to the corresponding element of another sequence by satisfying a test predicate.
Counts the number of elements in the arraybuffer which satisfy a predicate.
[use case] Computes the multiset difference between this arraybuffer and another sequence.
Computes the multiset difference between this arraybuffer and another sequence.
Builds a new arraybuffer from this arraybuffer without any duplicate elements.
Selects all elements except first n ones.
Selects all elements except last n ones.
Drops longest prefix of elements that satisfy a predicate.
Tests whether this arraybuffer ends with the given sequence.
The equality method defined in AnyRef
.
Tests whether every element of this arraybuffer 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 arraybuffer.
Selects all elements of this arraybuffer which satisfy a predicate.
Selects all elements of this arraybuffer which do not satisfy a predicate.
Finds the first element of the arraybuffer satisfying a predicate, if any.
Returns index of the first element satisfying a predicate, or -1
.
Returns index of the last element satisfying a predicate, or -1.
None
if iterable is empty.
[use case] Builds a new collection by applying a function to all elements of this arraybuffer and concatenating the results.
Builds a new collection by applying a function to all elements of this arraybuffer and concatenating the results.
[use case] Converts this arraybuffer of traversable collections into a arraybuffer in which all element collections are concatenated.
Converts this arraybuffer of traversable collections into a arraybuffer in which all element collections are concatenated.
Applies a binary operator to a start value and all elements of this arraybuffer, going left to right.
Applies a binary operator to all elements of this arraybuffer and a start value, going right to left.
Tests whether a predicate holds for all elements of this arraybuffer.
[use case] Applies a function f
to all elements of this arraybuffer.
Applies a function f
to all elements of this arraybuffer.
The generic builder that builds instances of ArrayBuffer at arbitrary element types.
Partitions this arraybuffer into a map of arraybuffers according to some discriminator function.
Partitions elements in fixed size arraybuffers.
Tests whether this arraybuffer is known to have a finite size.
Hashcodes for ArrayBuffer produce a value from the hashcodes of all the elements of the arraybuffer.
Selects the first element of this arraybuffer.
Optionally selects the first element.
[use case] Finds index of first occurrence of some value in this arraybuffer after or at some start index.
Finds index of first occurrence of some value in this arraybuffer after or at some start index.
[use case] Finds index of first occurrence of some value in this arraybuffer.
Finds index of first occurrence of some value in this arraybuffer.
Finds first index after or at a start index where this arraybuffer contains a given sequence as a slice.
Finds first index where this arraybuffer 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
.
[use case] Computes the multiset intersection between this arraybuffer and another sequence.
Computes the multiset intersection between this arraybuffer and another sequence.
Tests whether this arraybuffer contains given index.
Tests whether this arraybuffer is empty.
Tests whether this arraybuffer can be repeatedly traversed.
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 arraybuffer before or at a given end index.
Finds index of last occurrence of some value in this arraybuffer before or at a given end index.
[use case] Finds index of last occurrence of some value in this arraybuffer.
Finds index of last occurrence of some value in this arraybuffer.
Finds last index before or at a given end index where this arraybuffer contains a given sequence as a slice.
Finds last index where this arraybuffer 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 arraybuffer 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 arraybuffer.
Builds a new collection by applying a function to all elements of this arraybuffer.
Creates a new builder by applying a transformation function to the results of this builder.
[use case] Finds the largest element.
Finds the largest element.
[use case] Finds the smallest element.
Finds the smallest element.
Displays all elements of this arraybuffer in a string.
Displays all elements of this arraybuffer in a string using a separator string.
Displays all elements of this arraybuffer in a string using start, end, and separator strings.
Tests whether the arraybuffer 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 arraybuffer until a given target length is reached.
Appends an element value to this arraybuffer until a given target length is reached.
Partitions this arraybuffer in two arraybuffers according to a predicate.
[use case] Produces a new arraybuffer where a slice of elements in this arraybuffer is replaced by another sequence.
Produces a new arraybuffer where a slice of elements in this arraybuffer is replaced by another sequence.
Returns the length of the longest prefix whose elements all satisfy some predicate.
Prepends given elements to this buffer.
Prepends the elements contained in a traversable object 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 buffer as a sequence
Applies a binary operator to all elements of this arraybuffer, going left to right.
Optionally applies a binary operator to all elements of this arraybuffer, going left to right.
Applies a binary operator to all elements of this arraybuffer, going right to left.
Optionally applies a binary operator to all elements of this arraybuffer, going right to left.
remove elements of this array at indices after sz
Removes the element at a given index position.
Removes the element on a given index position.
The collection of type arraybuffer underlying this TraversableLike
object.
Produces a collection from the added elements.
Returns new arraybuffer 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 arraybuffer and collecting the results in reversed order.
Builds a new collection by applying a function to all elements of this arraybuffer 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 arraybuffer.
Checks if the other iterable collection contains the same elements in the same order as this arraybuffer.
Produces a collection containing cummulative results of applying the operator going left to right.
Produces a collection containing cummulative results of applying the operator going right to left.
Computes length of longest segment whose elements all satisfy some predicate.
The size of this arraybuffer, equivalent to length
.
Gives a hint how many elements are expected to be added
when the next result
is called.
Gives a hint that one expects the result
of this builder
to have the same size as the given collection, plus some delta.
Gives a hint how many elements are expected to be added
when the next result
is called, together with an upper bound
given by the size of some other collection.
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 ArrayBuffer according to the Ordering which results from transforming an implicitly given Ordering with a transformation function.
Sorts this arraybuffer according to a comparison function.
Sorts this arraybuffer according to an Ordering.
Splits this arraybuffer into a prefix/suffix pair according to a predicate.
Splits this arraybuffer into two at a given position.
Tests whether this arraybuffer contains the given sequence at a given index.
Tests whether this arraybuffer 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 arraybuffer to an array.
Converts this arraybuffer to an array.
Converts this arraybuffer to a mutable buffer.
Converts this arraybuffer to an indexed sequence.
Converts this arraybuffer to an iterable collection.
Returns an Iterator over the elements in this arraybuffer.
Converts this arraybuffer to a list.
Converts this arraybuffer to a map.
Converts this arraybuffer to a sequence.
Converts this arraybuffer to a set.
Converts this arraybuffer to a stream.
Converts this arraybuffer to a string.
Converts this arraybuffer to an unspecified Traversable.
Transposes this arraybuffer of traversable collections into a arraybuffer of arraybuffers.
Removes the last n elements of this buffer.
Removes the first n elements of this buffer.
[use case] Produces a new sequence which contains all elements of this arraybuffer and also all elements of a given sequence.
Produces a new sequence which contains all elements of this arraybuffer and also all elements of a given sequence.
Converts this arraybuffer 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 arraybuffer with one single replaced element.
A copy of this arraybuffer 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 arraybuffer.
[use case] Returns a arraybuffer formed from this arraybuffer and another iterable collection by combining corresponding elements in pairs.
Returns a arraybuffer formed from this arraybuffer and another iterable collection by combining corresponding elements in pairs.
[use case] Returns a arraybuffer formed from this arraybuffer and another iterable collection by combining corresponding elements in pairs.
Returns a arraybuffer formed from this arraybuffer and another iterable collection by combining corresponding elements in pairs.
[use case] Zips this arraybuffer with its indices.
Zips this arraybuffer 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.
version
1.0
authors:
Burak Emir