Uses of Class
io.vavr.collection.CharSeq
Packages that use CharSeq
Package
Description
Beside
API
the io.vavr package contains core types like (Checked)Functions and Tuples.Purely functional collections based on Traversable.
-
Uses of CharSeq in io.vavr
Modifier and TypeMethodDescriptionstatic CharSeq
API.CharSeq
(char character) Alias forof(char)
static CharSeq
API.CharSeq
(char... characters) Alias forof(char...)
static CharSeq
API.CharSeq
(CharSequence sequence) Alias forof(CharSequence)
default CharSeq
Value.toCharSeq()
Converts this to aCharSeq
. -
Uses of CharSeq in io.vavr.collection
Fields in io.vavr.collection declared as CharSeqMethods in io.vavr.collection that return CharSeqModifier and TypeMethodDescriptionCharSeq.asJavaMutable
(Consumer<? super List<Character>> action) CharSeq.capitalize()
Converts the first character in thisCharSeq
to upper case using the rules of the default locale.CharSeq.capitalize
(Locale locale) Converts the first character in thisCharSeq
to upper case using the rules of the givenLocale
.Concatenates the specified string to the end of this string.CharSeq.distinct()
CharSeq.distinctBy
(Comparator<? super Character> comparator) <U> CharSeq
CharSeq.distinctBy
(Function<? super Character, ? extends U> keyExtractor) CharSeq.drop
(int n) CharSeq.dropRight
(int n) CharSeq.dropRightUntil
(Predicate<? super Character> predicate) CharSeq.dropRightWhile
(Predicate<? super Character> predicate) static CharSeq
CharSeq.empty()
static CharSeq
Returns a CharSeq containingn
values supplied by a given Suppliers
.CharSeq.flatMapChars
(CharSeq.CharFunction<? extends CharSequence> mapper) CharSeq.init()
CharSeq.intersperse
(Character element) CharSeq.mapChars
(CharSeq.CharUnaryOperator mapper) default CharSeq
Traversable.mkCharSeq()
Joins the elements of this by concatenating their string representations.default CharSeq
Traversable.mkCharSeq
(CharSequence delimiter) Joins the string representations of this elements using a specific delimiter.default CharSeq
Traversable.mkCharSeq
(CharSequence prefix, CharSequence delimiter, CharSequence suffix) Joins the string representations of this elements using a specific delimiter, prefix and suffix.static CharSeq
CharSeq.of
(char character) Returns a singletonCharSeq
, i.e.static CharSeq
CharSeq.of
(char... characters) Creates a String of the given characters.static CharSeq
CharSeq.of
(CharSequence sequence) Creates a String ofCharSequence
.static CharSeq
Creates a String of the given elements.CharSeq.prependAll
(Iterable<? extends Character> elements) static CharSeq
CharSeq.range
(char from, char toExclusive) Creates a CharSeq starting from characterfrom
, extending to charactertoExclusive - 1
.static CharSeq
CharSeq.rangeBy
(char from, char toExclusive, int step) static CharSeq
CharSeq.rangeClosed
(char from, char toInclusive) Creates a CharSeq starting from characterfrom
, extending to charactertoInclusive
.static CharSeq
CharSeq.rangeClosedBy
(char from, char toInclusive, int step) Creates a CharSeq starting from characterfrom
, extending to charactertoInclusive
, withstep
.Deprecated.CharSeq.removeAt
(int index) CharSeq.removeFirst
(Predicate<Character> predicate) CharSeq.removeLast
(Predicate<Character> predicate) static CharSeq
CharSeq.repeat
(char character, int times) Repeats a charactertimes
times.CharSeq.repeat
(int times) Repeats this CharSeqtimes
times.CharSeq.replace
(CharSequence target, CharSequence replacement) Replaces each substring of this string that matches the literal target sequence with the specified literal replacement sequence.CharSeq.replaceAll
(Character currentElement, Character newElement) CharSeq.replaceAll
(String regex, String replacement) Replaces each substring of this string that matches the given regular expression with the given replacement.CharSeq.replaceFirst
(String regex, String replacement) Replaces the first substring of this string that matches the given regular expression with the given replacement.CharSeq.reverse()
CharSeq.rotateLeft
(int n) CharSeq.rotateRight
(int n) CharSeq.scan
(Character zero, BiFunction<? super Character, ? super Character, ? extends Character> operation) CharSeq.shuffle()
CharSeq.slice
(int beginIndex, int endIndex) <U> CharSeq
CharSeq.sortBy
(Comparator<? super U> comparator, Function<? super Character, ? extends U> mapper) <U extends Comparable<? super U>>
CharSeqCharSeq.sorted()
CharSeq.sorted
(Comparator<? super Character> comparator) CharSeq.subSequence
(int beginIndex) CharSeq.subSequence
(int beginIndex, int endIndex) CharSeq.substring
(int beginIndex) Returns a string that is a substring of this string.CharSeq.substring
(int beginIndex, int endIndex) Returns a string that is a substring of this string.static CharSeq
Returns a CharSeq containingn
values of a given Functionf
over a range of integer values from 0 ton - 1
.CharSeq.tail()
CharSeq.take
(int n) CharSeq.takeRight
(int n) CharSeq.takeRightUntil
(Predicate<? super Character> predicate) CharSeq.takeRightWhile
(Predicate<? super Character> predicate) CharSeq.toLowerCase()
Converts all of the characters in thisCharSeq
to lower case using the rules of the default locale.CharSeq.toLowerCase
(Locale locale) Converts all of the characters in thisCharSeq
to lower case using the rules of the givenLocale
.CharSeq.toUpperCase()
Converts all of the characters in thisCharSeq
to upper case using the rules of the default locale.CharSeq.toUpperCase
(Locale locale) Converts all of the characters in thisCharSeq
to upper case using the rules of the givenLocale
.CharSeq.trim()
Returns a string whose value is this string, with any leading and trailing whitespace removed.static CharSeq
CharSeq.unfold
(Character seed, Function<? super Character, Option<Tuple2<? extends Character, ? extends Character>>> f) Creates a CharSeq from a seed value and a function.static <T> CharSeq
CharSeq.unfoldLeft
(T seed, Function<? super T, Option<Tuple2<? extends T, ? extends Character>>> f) Creates a CharSeq from a seed value and a function.static <T> CharSeq
CharSeq.unfoldRight
(T seed, Function<? super T, Option<Tuple2<? extends Character, ? extends T>>> f) Creates a CharSeq from a seed value and a function.Methods in io.vavr.collection that return types with arguments of type CharSeqModifier and TypeMethodDescriptionstatic IndexedSeq
<CharSeq> CharSeq.collector()
Returns aCollector
which may be used in conjunction withStream.collect(java.util.stream.Collector)
to obtain aCharSeq
.CharSeq.combinations()
CharSeq.combinations
(int k) CharSeq.crossProduct
(int power) CharSeq.grouped
(int size) CharSeq.initOption()
CharSeq.permutations()
CharSeq.sliding
(int size) CharSeq.sliding
(int size, int step) Splits this string around matches of the given regular expression.Splits this string around matches of the given regular expression.CharSeq.splitAt
(int n) CharSeq.splitAt
(int n) CharSeq.splitAtInclusive
(Predicate<? super Character> predicate) CharSeq.splitAtInclusive
(Predicate<? super Character> predicate) CharSeq.splitByBuilder
(StringBuilder sb) CharSeq.splitByBuilder
(StringBuilder sb) CharSeq.tailOption()
Methods in io.vavr.collection with parameters of type CharSeqModifier and TypeMethodDescriptionstatic IndexedSeq
<CharSeq> int
Compares two strings lexicographically.int
CharSeq.compareToIgnoreCase
(CharSeq str) Compares two strings lexicographically, ignoring case differences.Concatenates the specified string to the end of this string.boolean
Tests if this string ends with the specified suffix.boolean
CharSeq.equalsIgnoreCase
(CharSeq anotherString) Compares thisCharSeq
to anotherCharSeq
, ignoring case considerations.int
Returns the index within this string of the first occurrence of the specified substring.int
Returns the index within this string of the first occurrence of the specified substring, starting at the specified index.CharSeq.indexOfOption
(CharSeq str) Returns the index of the first occurrence of the given element as anOption
.CharSeq.indexOfOption
(CharSeq str, int fromIndex) Returns the index of the first occurrence of the given element as anOption
, starting the search at the specified index.int
CharSeq.lastIndexOf
(CharSeq str) Returns the index within this string of the last occurrence of the specified substring.int
CharSeq.lastIndexOf
(CharSeq str, int fromIndex) Returns the index within this string of the last occurrence of the specified substring, searching backward starting at the specified index.CharSeq.lastIndexOfOption
(CharSeq str) Returns the index of the last occurrence of the given element as anOption
.CharSeq.lastIndexOfOption
(CharSeq str, int fromIndex) Returns the index of the last occurrence of the given element as anOption
, starting the search at the specified index.boolean
CharSeq.regionMatches
(boolean ignoreCase, int toffset, CharSeq other, int ooffset, int len) Tests if two string regions are equal.boolean
CharSeq.regionMatches
(int toffset, CharSeq other, int ooffset, int len) Tests if two string regions are equal.boolean
CharSeq.startsWith
(CharSeq prefix) Tests if this string starts with the specified prefix.boolean
CharSeq.startsWith
(CharSeq prefix, int toffset) Tests if the substring of this string beginning at the specified index starts with the specified prefix.Method parameters in io.vavr.collection with type arguments of type CharSeq