Additional top-level class in compilation unit: CharSeqModule.
Note
Because CharSeq represents a sequence of primitive characters (i.e. a String),
it breaks the Liskov Substitution Principle in the way, that the CharSeq cannot contain null elements.
In future version of Java, CharSeq should extend IndexedSeq<char> instead.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static interface |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final CharSeq | |
| private static final long |
| Modifier and Type | Method and Description |
|---|---|
| public CharSeq | append(Character
An element element)Implements io. Appends an element to this. |
| public CharSeq | appendAll(Iterable<? extends Character>
An Iterable of elements elements)Implements io. Appends all given elements to this. |
| public List | asJava()
Implements io. Creates an immutable |
| public CharSeq | asJava(Consumer<? super List<Character>>
A side-effecting unit of work that operates on an immutable action)java.util.List view.Implements io. Creates an immutable |
| public List | asJavaMutable()
Implements io. Creates a mutable |
| public CharSeq | asJavaMutable(Consumer<? super List<Character>>
A side-effecting unit of work that operates on a mutable action)java.util.List view.Implements io. Creates a mutable |
| public CharSeq | Returns: theCharSeq, capitalized.use the case transformation rules for this locale locale)Converts the first character in this |
| public CharSeq | Returns: theCharSeq, capitalized.Converts the first character in this |
| public char | Returns: thechar value at the specified index of this string.
The first char value is at index 0.the index of the index)char value.Implements java. Returns the |
| public int | Returns: the code point value of the character at theindexthe index to the index)char valuesReturns the character (Unicode code point) at the specified index. |
| public int | Returns: the Unicode code point value before the given index.the index following the code point that should be returned index)Returns the character (Unicode code point) before the specified index. |
| public int | Returns: the number of Unicode code points in the specified text rangethe index to the first beginIndex, int char of
the text range.the index after the last endIndex)char of
the text range.Returns the number of Unicode code points in the specified text
range of this |
| public <R> IndexedSeq | collect(PartialFunction<? super Character, ? extends R>
A function that is not necessarily defined of all elements of this traversable. partialFunction)Implements io. Collects all elements that are in the domain of the given |
| public static Collector | Returns: ACharSeq Collector.Returns a |
| public IndexedSeq | combinations()
Implements io. Returns the union of all combinations from k = 0 to length(). |
| public IndexedSeq | combinations(int
Size of subsets k)Implements io. Returns the k-combination of this traversable, i.e. all subset of this of k distinct elements. |
| public int | Returns: the value0 if the argument string is equal to
this string; a value less than 0 if this string
is lexicographically less than the string argument; and a
value greater than 0 if this string is
lexicographically greater than the string argument.the anotherString)CharSeq to be compared.Implements java. Compares two strings lexicographically. |
| public int | Returns: a negative integer, zero, or a positive integer as the specified String is greater than, equal to, or less than this String, ignoring case considerations.the str)CharSeq to be compared.Compares two strings lexicographically, ignoring case differences. |
| public CharSeq | |
| public boolean | Returns: true if this string containss, false otherwisethe sequence to search for s)Overrides default io. Returns true if and only if this string contains the specified sequence of char values. |
| public boolean | Returns: true if this CharSeq represents the same
sequence of characters as the specified StringBuffer,
false otherwiseThe sb)StringBuffer to compare this CharSeq againstCompares this string to the specified |
| public boolean | Returns: true if this CharSeq represents the same
sequence of char values as the specified sequence, false otherwiseThe sequence to compare this cs)CharSeq againstCompares this string to the specified |
| public Iterator | crossProduct(int
the number of cartesian multiplications power)Implements io. Calculates the n-ary cartesian power (or cross product or simply product) of this. |
| public Byte | Returns: aByte object holding the byte value represented by this CharSeqDecodes this |
| public Integer | Returns: anInteger object holding the int value represented by this CharSeqDecodes this |
| public Long | Returns: aLong object holding the long value represented by this CharSeqDecodes this |
| public Short | Returns: aShort object holding the short value represented by this CharSeqDecodes this |
| public CharSeq | distinct()
Implements io. Returns a new version of this which contains no duplicates. |
| public CharSeq | distinctBy(Comparator<? super Character>
A comparator comparator)Implements io. Returns a new version of this which contains no duplicates. |
| public <U> CharSeq | distinctBy(Function<? super Character, ? extends U>
A key extractor keyExtractor)Implements io. Returns a new version of this which contains no duplicates. |
| public CharSeq | drop(int
The number of elements to drop. n)Implements io. Drops the first n elements of this or all elements, if this length < n. |
| public CharSeq | dropRight(int
The number of elements to drop. n)Implements io. Drops the last n elements of this or all elements, if this length < n. |
| public CharSeq | dropRightUntil(Predicate<? super Character>
A condition tested subsequently for this elements, starting from the end. predicate)Implements io. Drops elements until the predicate holds for the current element, starting from the end. |
| public CharSeq | dropRightWhile(Predicate<? super Character>
A condition tested subsequently for this elements, starting from the end. predicate)Implements io. Drops elements while the predicate holds for the current element, starting from the end. |
| public CharSeq | dropUntil(Predicate<? super Character>
A condition tested subsequently for this elements. predicate)Implements io. Drops elements until the predicate holds for the current element. |
| public CharSeq | dropWhile(Predicate<? super Character>
A condition tested subsequently for this elements. predicate)Implements io. Drops elements while the predicate holds for the current element. |
| public static CharSeq | |
| public boolean | Returns: true if the character sequence represented by the
argument is a suffix of the character sequence represented by
this object; false otherwise. Note that the
result will be true if the argument is the
empty string or is equal to this CharSeq object
as determined by the equals(Object) method.the suffix. suffix)Tests if this string ends with the specified suffix. |
| public boolean | equals(Object
an object, may be null o)Overrides java. Implements io. In Vavr there are four basic classes of collections:
|
| public boolean | Returns: true if the argument is not null and it
represents an equivalent CharSeq ignoring case; false otherwiseThe anotherString)CharSeq to compare this CharSeq againstCompares this |
| public static CharSeq | |
| public CharSeq | filter(Predicate<? super Character>
A predicate predicate)Implements io. Returns a new traversable consisting of all elements which satisfy the given predicate. |
| public <U> IndexedSeq | flatMap(Function<? super Character, ? extends Iterable<? extends U>>
A mapper mapper)Implements io. FlatMaps this Traversable. |
| public CharSeq | |
| public Character | get(int
an index index)Implements io. Returns the element at the specified index. |
| public byte[] | |
| public byte[] | Returns: The resultant byte arrayThe java.nio.charset.Charset to be used to encode
the charset)CharSeqEncodes this |
| public byte[] | Returns: The resultant byte arrayEncodes this |
| public void | getChars(int
index of the first character in the string
to copy. srcBegin, int index after the last character in the string
to copy. srcEnd, char[] the destination array. dst, int the start offset in the destination array. dstBegin)Copies characters from this string into the destination character array. |
| public <C> Map | groupBy(Function<? super Character, ? extends C>
A function which classifies elements into classes classifier)Implements io. Groups this elements by classifying the elements. |
| public Iterator | grouped(int
a positive block size size)Implements io. Groups this |
| public boolean | hasDefiniteSize()
Implements io. Checks if this Traversable is known to have a finite size. |
| public int | hashCode()
Overrides java. Implements io. Returns the hash code of this collection. |
| public Character | head()
Implements io. Returns the first element of a non-empty Traversable. |
| public int | indexOf(Character
an element element, int start index from)Implements io. Returns the index of the first occurrence of the given element after or at some start index or -1 if this does not contain the given element. |
| public int | Returns: the index of the first occurrence of the character in the character sequence represented by this object, or-1 if the character does not occur.a character (Unicode code point). ch)Overrides default io. Returns the index within this string of the first occurrence of the specified character. |
| public int | Returns: the index of the first occurrence of the character in the character sequence represented by this object that is greater than or equal tofromIndex, or -1
if the character does not occur.a character (Unicode code point). ch, int the index to start the search from. fromIndex)Implements io. Returns the index within this string of the first occurrence of the specified character, starting the search at the specified index. |
| public int | Returns: the index of the first occurrence of the specified substring, or-1 if there is no such occurrence.the substring to search for. str)Overrides default io. Returns the index within this string of the first occurrence of the specified substring. |
| public int | Returns: the index of the first occurrence of the specified substring, starting at the specified index, or-1 if there is no such occurrence.the substring to search for. str, int the index from which to start the search. fromIndex)Implements io. Returns the index within this string of the first occurrence of the specified substring, starting at the specified index. |
| pack-priv Option | Returns: Some(index) or None if not found.a character (Unicode code point). ch)Overrides default io. Returns the index of the first occurrence of the given element as an |
| pack-priv Option | Returns: Some(index) or None if not found.a character (Unicode code point). ch, int the index to start the search from. fromIndex)Overrides default io. Returns the index of the first occurrence of the given element as an |
| public Option | Returns: Some(index) or None if not found.the substring to search for. str)Overrides default io. Returns the index of the first occurrence of the given element as an |
| public Option | Returns: Some(index) or None if not found.the substring to search for. str, int the index from which to start the search. fromIndex)Overrides default io. Returns the index of the first occurrence of the given element as an |
| public CharSeq | init()
Implements io. Dual of tail(), returning all elements except the last. |
| public Option | initOption()
Implements io. Dual of tailOption(), returning all elements except the last as |
| public CharSeq | insert(int
an index index, Character an element element)Implements io. Inserts the given element at the specified index. |
| public CharSeq | insertAll(int
an index index, Iterable<? extends Character> An Iterable of elements elements)Implements io. Inserts the given elements at the specified index. |
| public CharSeq | intersperse(Character
An element. element)Implements io. Inserts an element between all elements of this Traversable. |
| public boolean | |
| public boolean | isEmpty()
Overrides default java. Returns |
| public boolean | |
| public boolean | isTraversableAgain()
Implements io. Checks if this Traversable can be repeatedly traversed. |
| public Iterator | iterator()
Overrides default io. An iterator by means of head() and tail(). |
| public int | lastIndexOf(Character
an element element, int the end index end)Implements io. Returns the index of the last occurrence of the given element before or at a given end index or -1 if this does not contain the given element. |
| public int | Returns: the index of the last occurrence of the character in the character sequence represented by this object, or-1 if the character does not occur.a character (Unicode code point). ch)Overrides default io. Returns the index within this string of the last occurrence of the specified character. |
| public int | Returns: the index of the last occurrence of the character in the character sequence represented by this object that is less than or equal tofromIndex, or -1
if the character does not occur before that point.a character (Unicode code point). ch, int the index to start the search from. There is no
restriction on the value of fromIndex)fromIndex. If it is
greater than or equal to the length of this string, it has
the same effect as if it were equal to one less than the
length of this string: this entire string may be searched.
If it is negative, it has the same effect as if it were -1:
-1 is returned.Implements io. Returns the index within this string of the last occurrence of the specified character, searching backward starting at the specified index. |
| public int | Returns: the index of the last occurrence of the specified substring, or-1 if there is no such occurrence.the substring to search for. str)Overrides default io. Returns the index within this string of the last occurrence of the specified substring. |
| public int | Returns: the index of the last occurrence of the specified substring, searching backward from the specified index, or-1 if there is no such occurrence.the substring to search for. str, int the index to start the search from. fromIndex)Implements io. Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index. |
| pack-priv Option | Returns: Some(index) or None if not found.a character (Unicode code point). ch)Overrides default io. Returns the index of the last occurrence of the given element as an |
| public Option | Returns: Some(index) or None if not found.a character (Unicode code point). ch, int the index to start the search from. fromIndex)Overrides default io. Returns the index of the last occurrence of the given element as an |
| public Option | Returns: Some(index) or None if not found.the substring to search for. str)Overrides default io. Returns the index of the last occurrence of the given element as an |
| public Option | Returns: Some(index) or None if not found.the substring to search for. str, int the index to start the search from. fromIndex)Overrides default io. Returns the index of the last occurrence of the given element as an |
| public CharSeq | leftPadTo(int
the target length length, Character the padding element element)Implements io. A copy of this sequence with an element prepended until a given target length is reached. |
| public int | Returns: the length of the sequence of characters represented by this object.Implements java. Returns the length of this string. |
| public <U> IndexedSeq | map(Function<? super Character, ? extends U>
A mapper. mapper)Implements io. Maps the elements of this |
| public CharSeq | |
| public boolean | Returns: true if, and only if, this string matches the
given regular expressionthe regular expression to which this string is to be matched regex)Tells whether or not this string matches the given regular expression. |
| public String | mkString()
Overrides default io. Joins the elements of this by concatenating their string representations. |
| public static CharSeq | Returns: A newio.CharSequence instance.Creates a String of |
| public static CharSeq | Returns: A newCharSeq instance containing the given elementA character. character)Returns a singleton |
| public static CharSeq | Returns: A string containing the given characters in the same order.Zero or more characters. characters)Creates a String of the given characters. |
| public static CharSeq | |
| public int | Returns: the index within thisCharSeqthe index to be offset index, int the offset in code points codePointOffset)Returns the index within this |
| public CharSeq | orElse(Iterable<? extends Character>
An alternative other)TraversableImplements io. Returns this |
| public CharSeq | orElse(Supplier<? extends Iterable<? extends Character>>
An alternative supplier)Traversable supplierImplements io. Returns this |
| private static StringBuilder | |
| public CharSeq | padTo(int
the target length length, Character the padding element element)Implements io. A copy of this sequence with an element appended until a given target length is reached. |
| public boolean | Returns: the boolean represented by thisCharSeqParses this |
| public byte | Returns: the byte value represented by thisCharSeq in decimalParses this |
| public byte | Returns: the byte value represented by thisCharSeq in the specified radixthe radix to be used in interpreting this radix)CharSeqParses this |
| public double | Returns: the double value represented by thisCharSeqParses this |
| public float | Returns: the float value represented by thisCharSeqParses this |
| public int | Returns: the int value represented by thisCharSeq in decimalParses this |
| public int | Returns: the int value represented by thisCharSeq in the specified radixthe radix to be used in interpreting this radix)CharSeqParses this |
| public long | Returns: the long value represented by thisCharSeq in decimalParses this |
| public long | Returns: the long value represented by thisCharSeq in the specified radixthe radix to be used in interpreting this radix)CharSeqParses this |
| public short | Returns: the short value represented by thisCharSeq in decimalParses this |
| public short | Returns: the short value represented by thisCharSeq in the specified radixthe radix to be used in interpreting this radix)CharSeqParses this |
| public int | Returns: the unsigned int value represented by thisCharSeq in decimalParses this |
| public int | Returns: the unsigned int value represented by thisCharSeq in the specified radixthe radix to be used in interpreting this radix)CharSeqParses this |
| public long | Returns: the unsigned long value represented by thisCharSeq in decimalParses this |
| public long | Returns: the unsigned long value represented by thisCharSeq in the specified radixthe radix to be used in interpreting this radix)CharSeqParses this |
| public Tuple2 | partition(Predicate<? super Character>
A predicate which classifies an element if it is in the first or the second traversable. predicate)Implements io. Creates a partition of this |
| public CharSeq | patch(int
the index of the first replaced element from, Iterable<? extends Character> sequence for replacement that, int the number of elements to drop in the original list replaced)Implements io. Produces a new list where a slice of elements in this list is replaced by another sequence. |
| public CharSeq | peek(Consumer<? super Character>
The action that will be performed on the element(s). action)Implements io. Performs the given |
| public IndexedSeq | permutations()
Implements io. Computes all unique permutations. |
| public CharSeq | prepend(Character
An element element)Implements io. Prepends an element to this. |
| public CharSeq | prependAll(Iterable<? extends Character>
An Iterable of elements elements)Implements io. Prepends all given elements to this. |
| public static CharSeq | Returns: a range of characters as specified or the empty range iffrom >= toExclusivethe first character from, char the successor of the last character toExclusive)Creates a CharSeq starting from character |
| public static CharSeq | |
| public static CharSeq | Returns: a range of characters as specified or the empty range iffrom > toInclusivethe first character from, char the last character toInclusive)Creates a CharSeq starting from character |
| public static CharSeq | Returns: a range of characters as specified or the empty range ifstep * (from - toInclusive) > 0.the first character from, char the last character toInclusive, int the step step)Creates a CharSeq starting from character |
| private Object | |
| public boolean | Returns: true if the specified subregion of this string
exactly matches the specified subregion of the string argument;
false otherwise.the starting offset of the subregion in this string. toffset, CharSeq the string argument. other, int the starting offset of the subregion in the string
argument. ooffset, int the number of characters to compare. len)Tests if two string regions are equal. |
| public boolean | Returns: true if the specified subregion of this string
matches the specified subregion of the string argument;
false otherwise. Whether the matching is exact
or case insensitive depends on the ignoreCase
argument.if ignoreCase, int true, ignore case when comparing
characters.the starting offset of the subregion in this
string. toffset, CharSeq the string argument. other, int the starting offset of the subregion in the string
argument. ooffset, int the number of characters to compare. len)Tests if two string regions are equal. |
| public CharSeq | reject(Predicate<? super Character>
A predicate predicate)Implements io. Returns a new traversable consisting of all elements which do not satisfy the given predicate. |
| public CharSeq | remove(Character
An element to be removed from this Seq. element)Implements io. Removes the first occurrence of the given element. |
| public CharSeq | removeAll(Character
An element to be removed from this Seq. element)Implements io. Removes all occurrences of the given element. |
| public CharSeq | removeAll(Iterable<? extends Character>
Elements to be removed from this Seq. elements)Implements io. Removes all occurrences of the given elements. |
| public CharSeq | removeAll(Predicate<? super Character>
the predicate used to test elements predicate)Implements io.
Deprecated
Returns a new Seq consisting of all elements which do not satisfy the given predicate. |
| public CharSeq | removeAt(int
position of element to remove index)Implements io. Removes the element at the specified position in this sequence. |
| public CharSeq | removeFirst(Predicate<Character>
an predicate predicate)Implements io. Removes the first occurrence that satisfy predicate |
| public CharSeq | removeLast(Predicate<Character>
an predicate predicate)Implements io. Removes the last occurrence that satisfy predicate |
| public static CharSeq | Returns: A CharSeq representingcharacter * timesA character character, int Repetition count times)Repeats a character |
| public CharSeq | Returns: A CharSeq representingthis * timesRepetition count times)Repeats this CharSeq |
| public CharSeq | replace(Character
An element to be substituted. currentElement, Character A replacement for currentElement. newElement)Implements io. Replaces the first occurrence (if exists) of the given currentElement with newElement. |
| public CharSeq | Returns: The resulting stringThe sequence of char values to be replaced target, CharSequence The replacement sequence of char values replacement)Implements io. Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence. |
| public CharSeq | replaceAll(Character
An element to be substituted. currentElement, Character A replacement for currentElement. newElement)Implements io. Replaces all occurrences of the given currentElement with newElement. |
| public CharSeq | Returns: The resultingCharSeqthe regular expression to which this string is to be matched regex, String the string to be substituted for each match replacement)Implements io. Replaces each substring of this string that matches the given regular expression with the given replacement. |
| public CharSeq | Returns: The resultingCharSeqthe regular expression to which this string is to be matched regex, String the string to be substituted for the first match replacement)Replaces the first substring of this string that matches the given regular expression with the given replacement. |
| public CharSeq | retainAll(Iterable<? extends Character>
Elements to be kept. elements)Implements io. Keeps all occurrences of the given elements from this. |
| public CharSeq | |
| public CharSeq | rotateLeft(int
distance of left rotation n)Implements io. Circular rotates the elements by the specified distance to the left direction. |
| public CharSeq | rotateRight(int
distance of right rotation n)Implements io. Circular rotates the elements by the specified distance to the right direction. |
| public CharSeq | scan(Character
neutral element for the operator op zero, BiFunction<? super Character, ? super Character, ? extends Character> the associative operator for the scan operation)Implements io. Computes a prefix scan of the elements of the collection. |
| public <U> IndexedSeq | scanLeft(U
the initial value zero, BiFunction<? super U, ? super Character, ? extends U> the binary operator applied to the intermediate result and the element operation)Implements io. Produces a collection containing cumulative results of applying the operator going left to right. |
| public <U> IndexedSeq | scanRight(U
the initial value zero, BiFunction<? super Character, ? super U, ? extends U> the binary operator applied to the intermediate result and the element operation)Implements io. Produces a collection containing cumulative results of applying the operator going right to left. |
| public CharSeq | shuffle()
Implements io. Randomize the order of the elements in the current sequence. |
| public CharSeq | slice(int
the beginning index, inclusive beginIndex, int the end index, exclusive endIndex)Implements io. Returns a Seq that is a slice of this. |
| public Iterator | slideBy(Function<? super Character, ?>
A function which classifies elements into classes classifier)Implements io. Slides a non-overlapping window of a variable size over this |
| public Iterator | sliding(int
a positive window size size)Implements io. Slides a window of a specific |
| public Iterator | sliding(int
a positive window size size, int a positive step size step)Implements io. Slides a window of a specific |
| public <U extends Comparable | sortBy(Function<? super Character, ? extends U>
A mapper mapper)Implements io. Sorts this elements by comparing the elements in a different domain, using the given |
| public <U> CharSeq | sortBy(Comparator<? super U>
A comparator comparator, Function<? super Character, ? extends U> A mapper mapper)Implements io. Sorts this elements by comparing the elements in a different domain, using the given |
| public CharSeq | sorted()
Implements io. Sorts this elements according to their natural order. |
| public CharSeq | sorted(Comparator<? super Character>
A comparator comparator)Implements io. Sorts this elements according to the provided |
| public Tuple2 | span(Predicate<? super Character>
A predicate. predicate)Implements io. Returns a tuple where the first element is the longest prefix of elements that satisfy the given
|
| public Seq | Returns: the Seq of strings computed by splitting this string around matches of the given regular expressionthe delimiting regular expression regex)Splits this string around matches of the given regular expression. |
| public Seq | Returns: the Seq of strings computed by splitting this string around matches of the given regular expressionthe delimiting regular expression regex, int the result threshold, as described above limit)Splits this string around matches of the given regular expression. |
| public Tuple2 | splitAt(int
An index. n)Implements io. Splits a Seq at the specified index. |
| public Tuple2 | splitAt(Predicate<? super Character>
An predicate predicate)Implements io. Splits a sequence at the first element which satisfies the |
| public Tuple2 | splitAtInclusive(Predicate<? super Character>
An predicate predicate)Implements io. Splits a sequence at the first element which satisfies the |
| private Tuple2 | |
| public boolean | startsWith(Iterable<? extends Character>
the sequence to test that, int the index where the sequence is searched. offset)Overrides default io. Tests whether this list contains the given sequence at a given index. |
| public boolean | Returns: true if the character sequence represented by the
argument is a prefix of the substring of this object starting
at index toffset; false otherwise.
The result is false if toffset is
negative or greater than the length of this
CharSeq object; otherwise the result is the same
as the result of the expression
this.substring(toffset).startsWith(prefix)
the prefix. prefix, int where to begin looking in this string. toffset)Tests if the substring of this string beginning at the specified index starts with the specified prefix. |
| public boolean | Returns: true if the character sequence represented by the
argument is a prefix of the character sequence represented by
this string; false otherwise.
Note also that true will be returned if the
argument is an empty string or is equal to this
CharSeq object as determined by the
equals(Object) method.the prefix. prefix)Tests if this string starts with the specified prefix. |
| public String | stringPrefix()
Implements io. Returns the name of this Value type, which is used by toString(). |
| public CharSeq | subSequence(int
the beginning index, inclusive beginIndex)Implements io. Returns a Seq that is a subsequence of this. |
| public CharSeq | subSequence(int
the start index, inclusive beginIndex, int the end index, exclusive endIndex)Implements java. Returns a |
| public CharSeq | Returns: the specified substring.the beginning index, inclusive. beginIndex)Returns a string that is a substring of this string. |
| public CharSeq | Returns: the specified substring.the beginning index, inclusive. beginIndex, int the ending index, exclusive. endIndex)Returns a string that is a substring of this string. |
| public static CharSeq | Returns: A CharSeq consisting of elementsf(0),f(1), ..., f(n - 1)The number of elements in the CharSeq n, Function<? super Integer, ? extends Character> The Function computing element values f)Returns a CharSeq containing |
| public CharSeq | tail()
Implements io. Drops the first element of a non-empty Traversable. |
| public Option | tailOption()
Implements io. Drops the first element of a non-empty Traversable and returns an |
| public CharSeq | take(int
The number of elements to take. n)Implements io. Takes the first n elements of this or all elements, if this length < n. |
| public CharSeq | takeRight(int
The number of elements to take. n)Implements io. Takes the last n elements of this or all elements, if this length < n. |
| public CharSeq | takeRightUntil(Predicate<? super Character>
A condition tested subsequently for this elements, starting from the end. predicate)Implements io. Takes elements until the predicate holds for the current element, starting from the end. |
| public CharSeq | takeRightWhile(Predicate<? super Character>
A condition tested subsequently for this elements, starting from the end. predicate)Implements io. Takes elements while the predicate holds for the current element, starting from the end. |
| public CharSeq | takeUntil(Predicate<? super Character>
A condition tested subsequently for this elements. predicate)Implements io. Takes elements until the predicate holds for the current element. |
| public CharSeq | takeWhile(Predicate<? super Character>
A condition tested subsequently for the contained elements. predicate)Implements io. Takes elements while the predicate holds for the current element. |
| public Boolean | Returns: theBoolean value represented by this CharSeqConverts this |
| public Byte | Returns: aByte object holding the value represented by this CharSeqConverts this |
| public Byte | Returns: aByte object holding the value represented by this CharSeqthe radix to be used in interpreting this char sequence radix)Converts this |
| public char[] | Returns: a newly allocated character array whose length is the length of this string and whose contents are initialized to contain the character sequence represented by this string.Converts this string to a new character array. |
| public Double | Returns: aDouble object holding the value represented by this CharSeqConverts this |
| public Float | Returns: aFloat object holding the value represented by this CharSeqConverts this |
| public Integer | Returns: anInteger object holding the value represented by this CharSeqConverts this |
| public Integer | Returns: anInteger object holding the value represented by this CharSeqthe radix to be used in interpreting this char sequence radix)Converts this |
| public Character[] | toJavaArray()
Overrides default io. Converts this to a Java array with component type
|
| public Long | Returns: aLong object holding the value represented by this CharSeqConverts this |
| public Long | Returns: aLong object holding the value represented by this CharSeqthe radix to be used in interpreting this char sequence radix)Converts this |
| public CharSeq | Returns: theCharSeq, converted to lowercase.use the case transformation rules for this locale locale)Converts all of the characters in this |
| public CharSeq | Returns: theCharSeq, converted to lowercase.Converts all of the characters in this |
| public Short | Returns: aShort object holding the value represented by this CharSeqConverts this |
| public Short | Returns: aShort object holding the value represented by this CharSeqthe radix to be used in interpreting this char sequence radix)Converts this |
| public String | Returns: a string consisting of exactly this sequence of charactersOverrides java. Implements java. Returns a string containing the characters in this sequence in the same order as this sequence. |
| public CharSeq | Returns: theCharSeq, converted to uppercase.use the case transformation rules for this locale locale)Converts all of the characters in this |
| public CharSeq | Returns: theCharSeq, converted to uppercase.Converts all of the characters in this |
| public < Type of transformation result U> U | |
| public CharSeq | Returns: A string whose value is this string, with any leading and trailing white space removed, or this string if it has no leading or trailing white space.Returns a string whose value is this string, with any leading and trailing whitespace removed. |
| public static CharSeq | Returns: a CharSeq with the values built up by the iterationthe start value for the iteration seed, Function<? super Character, Option<Tuple2<? extends Character, ? extends Character>>> the function to get the next step of the iteration f)Creates a CharSeq from a seed value and a function. |
| public static < type of seeds T> CharSeq | Returns: a CharSeq with the values built up by the iterationthe start value for the iteration seed, Function<? super T, Option<Tuple2<? extends T, ? extends Character>>> the function to get the next step of the iteration f)Creates a CharSeq from a seed value and a function. |
| public static < type of seeds T> CharSeq | Returns: a CharSeq with the values built up by the iterationthe start value for the iteration seed, Function<? super T, Option<Tuple2<? extends Character, ? extends T>>> the function to get the next step of the iteration f)Creates a CharSeq from a seed value and a function. |
| public <T1, T2> Tuple2 | unzip(Function<? super Character, Tuple2<? extends T1, ? extends T2>>
a function which converts elements of this to pairs unzipper)Implements io. Unzips this elements by mapping this elements to pairs which are subsequently split into two distinct sets. |
| public <T1, T2, T3> Tuple3 | unzip3(Function<? super Character, Tuple3<? extends T1, ? extends T2, ? extends T3>>
a function which converts elements of this to pairs unzipper)Implements io. Unzips this elements by mapping this elements to triples which are subsequently split into three distinct sets. |
| public CharSeq | update(int
an index index, Character an element element)Implements io. Updates the given element at the specified index. |
| public CharSeq | update(int
an index index, Function<? super Character, ? extends Character> a function transforming the previous value updater)Implements io. Updates the given element at the specified index using the specified function. |
| public <U> IndexedSeq | zip(Iterable<? extends U>
The Iterable providing the second half of each result pair. that)Implements io. Returns a traversable formed from this traversable and another Iterable collection by combining corresponding elements in pairs. |
| public <U> IndexedSeq | zipAll(Iterable<? extends U>
The Iterable providing the second half of each result pair. that, Character The element to be used to fill up the result if this traversable is shorter than that. thisElem, U The element to be used to fill up the result if that is shorter than this traversable. thatElem)Implements io. Returns a traversable formed from this traversable and another Iterable by combining corresponding elements in pairs. |
| public <U, R> IndexedSeq | zipWith(Iterable<? extends U>
The Iterable providing the second parameter of the mapper. that, BiFunction<? super Character, ? super U, ? extends R> a mapper. mapper)Implements io. Returns a traversable formed from this traversable and another Iterable collection by mapping elements. |
| public IndexedSeq | zipWithIndex()
Implements io. Zips this traversable with its indices. |
| public <U> IndexedSeq | zipWithIndex(BiFunction<? super Character, ? super Integer, ? extends U>
a mapper. mapper)Implements io. Zips this traversable with its indices by applying mapper provided. |