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 CharSeqAPI.CharSeq(char character) Alias forCharSeq.of(char)static CharSeqAPI.CharSeq(char... characters) Alias forCharSeq.of(char...)static CharSeqAPI.CharSeq(CharSequence sequence) Alias forCharSeq.of(CharSequence)default CharSeqValue.toCharSeq()Converts this to aCharSeq. -
Uses of CharSeq in io.vavr.collection
Classes in io.vavr.collection that implement interfaces with type arguments of type CharSeqModifier and TypeClassDescriptionfinal classThe CharSeq (read: character sequence) collection essentially is a rich String wrapper having all operations we know from the functional Vavr collections.Fields in io.vavr.collection declared as CharSeqMethods in io.vavr.collection that return CharSeqModifier and TypeMethodDescriptionCharSeq.asJavaMutable(@NonNull Consumer<? super List<Character>> action) CharSeq.capitalize()Converts the first character in thisCharSeqto upper case using the rules of the default locale.CharSeq.capitalize(Locale locale) Converts the first character in thisCharSeqto upper case using the rules of the givenLocale.Concatenates the specified string to the end of this string.CharSeq.distinct()CharSeq.distinctBy(@NonNull Comparator<? super Character> comparator) <U> CharSeqCharSeq.distinctBy(@NonNull Function<? super Character, ? extends U> keyExtractor) CharSeq.distinctByKeepLast(@NonNull Comparator<? super Character> comparator) <U> CharSeqCharSeq.distinctByKeepLast(@NonNull Function<? super Character, ? extends U> keyExtractor) CharSeq.drop(int n) CharSeq.dropRight(int n) CharSeq.dropRightUntil(@NonNull Predicate<? super Character> predicate) CharSeq.dropRightWhile(@NonNull Predicate<? super Character> predicate) static CharSeqCharSeq.empty()Returns the empty CharSeq.static CharSeqReturns a CharSeq containingnvalues supplied by a given Suppliers.CharSeq.flatMapChars(@NonNull CharSeq.CharFunction<? extends CharSequence> mapper) FlatMaps thisCharSeqto a newCharSeqby applying aCharFunctionto each character, which returns aCharSequence, and concatenating the results.CharSeq.init()CharSeq.intersperse(Character element) CharSeq.mapChars(CharSeq.CharUnaryOperator mapper) Maps thisCharSeqto a newCharSeqby applying aCharUnaryOperatorto each character.default CharSeqTraversable.mkCharSeq()Concatenates the string representations of all elements in this Traversable.default CharSeqTraversable.mkCharSeq(CharSequence delimiter) Concatenates the string representations of all elements in this Traversable, separated by a delimiter.default CharSeqTraversable.mkCharSeq(CharSequence prefix, CharSequence delimiter, CharSequence suffix) Concatenates the string representations of all elements in this Traversable with a prefix, delimiter, and suffix.static CharSeqCharSeq.of(char character) Returns a singletonCharSeq, i.e.static CharSeqCharSeq.of(char @NonNull ... characters) Creates a String of the given characters.static CharSeqCharSeq.of(@NonNull CharSequence sequence) Creates a String ofCharSequence.static CharSeqCreates a String of the given elements.CharSeq.prependAll(@NonNull Iterable<? extends Character> elements) static CharSeqCharSeq.range(char from, char toExclusive) Creates a CharSeq starting from characterfrom, extending to charactertoExclusive - 1.static CharSeqCharSeq.rangeBy(char from, char toExclusive, int step) Creates a CharSeq starting from characterfrom, extending to charactertoExclusive - 1, withstep.static CharSeqCharSeq.rangeClosed(char from, char toInclusive) Creates a CharSeq starting from characterfrom, extending to charactertoInclusive.static CharSeqCharSeq.rangeClosedBy(char from, char toInclusive, int step) Creates a CharSeq starting from characterfrom, extending to charactertoInclusive, withstep.Deprecated.CharSeq.removeAt(int index) CharSeq.removeFirst(@NonNull Predicate<Character> predicate) CharSeq.removeLast(@NonNull Predicate<Character> predicate) static CharSeqCharSeq.repeat(char character, int times) Repeats a charactertimestimes.CharSeq.repeat(int times) Repeats this CharSeqtimestimes.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, @NonNull BiFunction<? super Character, ? super Character, ? extends Character> operation) CharSeq.shuffle()CharSeq.slice(int beginIndex, int endIndex) <U> CharSeqCharSeq.sortBy(@NonNull Comparator<? super U> comparator, Function<? super Character, ? extends U> mapper) <U extends Comparable<? super U>>
CharSeqCharSeq.sorted()CharSeq.sorted(@NonNull 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 CharSeqReturns a CharSeq containingnvalues of a given Functionfover a range of integer values from 0 ton - 1.CharSeq.tail()CharSeq.take(int n) CharSeq.takeRight(int n) CharSeq.takeRightUntil(@NonNull Predicate<? super Character> predicate) CharSeq.takeRightWhile(@NonNull Predicate<? super Character> predicate) CharSeq.toLowerCase()Converts all of the characters in thisCharSeqto lower case using the rules of the default locale.CharSeq.toLowerCase(Locale locale) Converts all of the characters in thisCharSeqto lower case using the rules of the givenLocale.CharSeq.toUpperCase()Converts all of the characters in thisCharSeqto upper case using the rules of the default locale.CharSeq.toUpperCase(Locale locale) Converts all of the characters in thisCharSeqto 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 CharSeqCharSeq.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> CharSeqCharSeq.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> CharSeqCharSeq.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 aCollectorwhich 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(@NonNull Predicate<? super Character> predicate) CharSeq.splitAtInclusive(@NonNull 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> intCompares two strings lexicographically.intCharSeq.compareToIgnoreCase(CharSeq str) Compares two strings lexicographically, ignoring case differences.Concatenates the specified string to the end of this string.booleanTests if this string ends with the specified suffix.booleanCharSeq.equalsIgnoreCase(CharSeq anotherString) Compares thisCharSeqto anotherCharSeq, ignoring case considerations.intReturns the index within this string of the first occurrence of the specified substring.intReturns 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.intCharSeq.lastIndexOf(CharSeq str) Returns the index within this string of the last occurrence of the specified substring.intCharSeq.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.booleanCharSeq.regionMatches(boolean ignoreCase, int toffset, CharSeq other, int ooffset, int len) Tests if two string regions are equal.booleanCharSeq.regionMatches(int toffset, CharSeq other, int ooffset, int len) Tests if two string regions are equal.booleanCharSeq.startsWith(CharSeq prefix) Tests if this string starts with the specified prefix.booleanCharSeq.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