Package | Description |
---|---|
io.vavr | |
io.vavr.collection |
Purely functional collections based on Traversable.
|
Modifier and Type | Method and Description |
---|---|
static CharSeq |
API.CharSeq(char... characters)
Alias for
of(char...) |
static CharSeq |
API.CharSeq(char character)
Alias for
of(char) |
static CharSeq |
API.CharSeq(java.lang.CharSequence sequence)
Alias for
of(CharSequence) |
default CharSeq |
Value.toCharSeq()
Converts this to a
CharSeq . |
Modifier and Type | Method and Description |
---|---|
CharSeq |
CharSeq.append(java.lang.Character element) |
CharSeq |
CharSeq.appendAll(java.lang.Iterable<? extends java.lang.Character> elements) |
CharSeq |
CharSeq.asJava(java.util.function.Consumer<? super java.util.List<java.lang.Character>> action) |
CharSeq |
CharSeq.asJavaMutable(java.util.function.Consumer<? super java.util.List<java.lang.Character>> action) |
CharSeq |
CharSeq.capitalize()
Converts the first character in this
CharSeq to upper
case using the rules of the default locale. |
CharSeq |
CharSeq.capitalize(java.util.Locale locale)
Converts the first character in this
CharSeq to upper
case using the rules of the given Locale . |
CharSeq |
CharSeq.concat(CharSeq str)
Concatenates the specified string to the end of this string.
|
CharSeq |
CharSeq.distinct() |
CharSeq |
CharSeq.distinctBy(java.util.Comparator<? super java.lang.Character> comparator) |
<U> CharSeq |
CharSeq.distinctBy(java.util.function.Function<? super java.lang.Character,? extends U> keyExtractor) |
CharSeq |
CharSeq.drop(int n) |
CharSeq |
CharSeq.dropRight(int n) |
CharSeq |
CharSeq.dropRightUntil(java.util.function.Predicate<? super java.lang.Character> predicate) |
CharSeq |
CharSeq.dropRightWhile(java.util.function.Predicate<? super java.lang.Character> predicate) |
CharSeq |
CharSeq.dropUntil(java.util.function.Predicate<? super java.lang.Character> predicate) |
CharSeq |
CharSeq.dropWhile(java.util.function.Predicate<? super java.lang.Character> predicate) |
static CharSeq |
CharSeq.empty() |
static CharSeq |
CharSeq.fill(int n,
java.util.function.Supplier<? extends java.lang.Character> s)
Returns a CharSeq containing
n values supplied by a given Supplier s . |
CharSeq |
CharSeq.filter(java.util.function.Predicate<? super java.lang.Character> predicate) |
CharSeq |
CharSeq.flatMapChars(CharSeq.CharFunction<? extends java.lang.CharSequence> mapper) |
CharSeq |
CharSeq.init() |
CharSeq |
CharSeq.insert(int index,
java.lang.Character element) |
CharSeq |
CharSeq.insertAll(int index,
java.lang.Iterable<? extends java.lang.Character> elements) |
CharSeq |
CharSeq.intersperse(java.lang.Character element) |
CharSeq |
CharSeq.leftPadTo(int length,
java.lang.Character element) |
CharSeq |
CharSeq.mapChars(CharSeq.CharUnaryOperator mapper) |
default CharSeq |
Traversable.mkCharSeq()
Joins the elements of this by concatenating their string representations.
|
default CharSeq |
Traversable.mkCharSeq(java.lang.CharSequence delimiter)
Joins the string representations of this elements using a specific delimiter.
|
default CharSeq |
Traversable.mkCharSeq(java.lang.CharSequence prefix,
java.lang.CharSequence delimiter,
java.lang.CharSequence suffix)
Joins the string representations of this elements using a specific delimiter, prefix and suffix.
|
static CharSeq |
CharSeq.of(char... characters)
Creates a String of the given characters.
|
static CharSeq |
CharSeq.of(char character)
Returns a singleton
CharSeq , i.e. |
static CharSeq |
CharSeq.of(java.lang.CharSequence sequence)
Creates a String of
CharSequence . |
static CharSeq |
CharSeq.ofAll(java.lang.Iterable<? extends java.lang.Character> elements)
Creates a String of the given elements.
|
CharSeq |
CharSeq.orElse(java.lang.Iterable<? extends java.lang.Character> other) |
CharSeq |
CharSeq.orElse(java.util.function.Supplier<? extends java.lang.Iterable<? extends java.lang.Character>> supplier) |
CharSeq |
CharSeq.padTo(int length,
java.lang.Character element) |
CharSeq |
CharSeq.patch(int from,
java.lang.Iterable<? extends java.lang.Character> that,
int replaced) |
CharSeq |
CharSeq.peek(java.util.function.Consumer<? super java.lang.Character> action) |
CharSeq |
CharSeq.prepend(java.lang.Character element) |
CharSeq |
CharSeq.prependAll(java.lang.Iterable<? extends java.lang.Character> elements) |
static CharSeq |
CharSeq.range(char from,
char toExclusive)
Creates a CharSeq starting from character
from , extending to character toExclusive - 1 . |
static CharSeq |
CharSeq.rangeBy(char from,
char toExclusive,
int step) |
static CharSeq |
CharSeq.rangeClosed(char from,
char toInclusive)
Creates a CharSeq starting from character
from , extending to character toInclusive . |
static CharSeq |
CharSeq.rangeClosedBy(char from,
char toInclusive,
int step)
Creates a CharSeq starting from character
from , extending to character toInclusive ,
with step . |
CharSeq |
CharSeq.remove(java.lang.Character element) |
CharSeq |
CharSeq.removeAll(java.lang.Character element) |
CharSeq |
CharSeq.removeAll(java.lang.Iterable<? extends java.lang.Character> elements) |
CharSeq |
CharSeq.removeAll(java.util.function.Predicate<? super java.lang.Character> predicate) |
CharSeq |
CharSeq.removeAt(int index) |
CharSeq |
CharSeq.removeFirst(java.util.function.Predicate<java.lang.Character> predicate) |
CharSeq |
CharSeq.removeLast(java.util.function.Predicate<java.lang.Character> predicate) |
static CharSeq |
CharSeq.repeat(char character,
int times)
Repeats a character
times times. |
CharSeq |
CharSeq.repeat(int times)
Repeats this CharSeq
times times. |
CharSeq |
CharSeq.replace(java.lang.Character currentElement,
java.lang.Character newElement) |
CharSeq |
CharSeq.replace(java.lang.CharSequence target,
java.lang.CharSequence replacement)
Replaces each substring of this string that matches the literal target
sequence with the specified literal replacement sequence.
|
CharSeq |
CharSeq.replaceAll(java.lang.Character currentElement,
java.lang.Character newElement) |
CharSeq |
CharSeq.replaceAll(java.lang.String regex,
java.lang.String replacement)
Replaces each substring of this string that matches the given regular expression with the
given replacement.
|
CharSeq |
CharSeq.replaceFirst(java.lang.String regex,
java.lang.String replacement)
Replaces the first substring of this string that matches the given regular expression with the
given replacement.
|
CharSeq |
CharSeq.retainAll(java.lang.Iterable<? extends java.lang.Character> elements) |
CharSeq |
CharSeq.reverse() |
CharSeq |
CharSeq.scan(java.lang.Character zero,
java.util.function.BiFunction<? super java.lang.Character,? super java.lang.Character,? extends java.lang.Character> operation) |
CharSeq |
CharSeq.shuffle() |
CharSeq |
CharSeq.slice(int beginIndex,
int endIndex) |
<U> CharSeq |
CharSeq.sortBy(java.util.Comparator<? super U> comparator,
java.util.function.Function<? super java.lang.Character,? extends U> mapper) |
<U extends java.lang.Comparable<? super U>> |
CharSeq.sortBy(java.util.function.Function<? super java.lang.Character,? extends U> mapper) |
CharSeq |
CharSeq.sorted() |
CharSeq |
CharSeq.sorted(java.util.Comparator<? super java.lang.Character> comparator) |
CharSeq |
CharSeq.subSequence(int beginIndex) |
CharSeq |
CharSeq.subSequence(int beginIndex,
int endIndex) |
CharSeq |
CharSeq.substring(int beginIndex)
Returns a string that is a substring of this string.
|
CharSeq |
CharSeq.substring(int beginIndex,
int endIndex)
Returns a string that is a substring of this string.
|
static CharSeq |
CharSeq.tabulate(int n,
java.util.function.Function<? super java.lang.Integer,? extends java.lang.Character> f)
Returns a CharSeq containing
n values of a given Function f
over a range of integer values from 0 to n - 1 . |
CharSeq |
CharSeq.tail() |
CharSeq |
CharSeq.take(int n) |
CharSeq |
CharSeq.takeRight(int n) |
CharSeq |
CharSeq.takeUntil(java.util.function.Predicate<? super java.lang.Character> predicate) |
CharSeq |
CharSeq.takeWhile(java.util.function.Predicate<? super java.lang.Character> predicate) |
CharSeq |
CharSeq.toLowerCase()
Converts all of the characters in this
CharSeq to lower
case using the rules of the default locale. |
CharSeq |
CharSeq.toLowerCase(java.util.Locale locale)
Converts all of the characters in this
CharSeq to lower
case using the rules of the given Locale . |
CharSeq |
CharSeq.toUpperCase()
Converts all of the characters in this
CharSeq to upper
case using the rules of the default locale. |
CharSeq |
CharSeq.toUpperCase(java.util.Locale locale)
Converts all of the characters in this
CharSeq to upper
case using the rules of the given Locale . |
CharSeq |
CharSeq.trim()
Returns a string whose value is this string, with any leading and trailing
whitespace removed.
|
static CharSeq |
CharSeq.unfold(java.lang.Character seed,
java.util.function.Function<? super java.lang.Character,Option<Tuple2<? extends java.lang.Character,? extends java.lang.Character>>> f)
Creates a CharSeq from a seed value and a function.
|
static <T> CharSeq |
CharSeq.unfoldLeft(T seed,
java.util.function.Function<? super T,Option<Tuple2<? extends T,? extends java.lang.Character>>> f)
Creates a CharSeq from a seed value and a function.
|
static <T> CharSeq |
CharSeq.unfoldRight(T seed,
java.util.function.Function<? super T,Option<Tuple2<? extends java.lang.Character,? extends T>>> f)
Creates a CharSeq from a seed value and a function.
|
CharSeq |
CharSeq.update(int index,
java.lang.Character element) |
CharSeq |
CharSeq.update(int index,
java.util.function.Function<? super java.lang.Character,? extends java.lang.Character> updater) |
Modifier and Type | Method and Description |
---|---|
static java.util.stream.Collector<java.lang.Character,java.util.ArrayList<java.lang.Character>,CharSeq> |
CharSeq.collector()
Returns a
Collector which may be used in conjunction with
Stream.collect(java.util.stream.Collector) to obtain a CharSeq . |
IndexedSeq<CharSeq> |
CharSeq.combinations() |
IndexedSeq<CharSeq> |
CharSeq.combinations(int k) |
Iterator<CharSeq> |
CharSeq.crossProduct(int power) |
<C> Map<C,CharSeq> |
CharSeq.groupBy(java.util.function.Function<? super java.lang.Character,? extends C> classifier) |
Iterator<CharSeq> |
CharSeq.grouped(int size) |
Option<CharSeq> |
CharSeq.initOption() |
Tuple2<CharSeq,CharSeq> |
CharSeq.partition(java.util.function.Predicate<? super java.lang.Character> predicate) |
Tuple2<CharSeq,CharSeq> |
CharSeq.partition(java.util.function.Predicate<? super java.lang.Character> predicate) |
IndexedSeq<CharSeq> |
CharSeq.permutations() |
Iterator<CharSeq> |
CharSeq.slideBy(java.util.function.Function<? super java.lang.Character,?> classifier) |
Iterator<CharSeq> |
CharSeq.sliding(int size) |
Iterator<CharSeq> |
CharSeq.sliding(int size,
int step) |
Tuple2<CharSeq,CharSeq> |
CharSeq.span(java.util.function.Predicate<? super java.lang.Character> predicate) |
Tuple2<CharSeq,CharSeq> |
CharSeq.span(java.util.function.Predicate<? super java.lang.Character> predicate) |
Seq<CharSeq> |
CharSeq.split(java.lang.String regex)
Splits this string around matches of the given
regular expression.
|
Seq<CharSeq> |
CharSeq.split(java.lang.String regex,
int limit)
Splits this string around matches of the given
regular expression.
|
Tuple2<CharSeq,CharSeq> |
CharSeq.splitAt(int n) |
Tuple2<CharSeq,CharSeq> |
CharSeq.splitAt(int n) |
Tuple2<CharSeq,CharSeq> |
CharSeq.splitAt(java.util.function.Predicate<? super java.lang.Character> predicate) |
Tuple2<CharSeq,CharSeq> |
CharSeq.splitAt(java.util.function.Predicate<? super java.lang.Character> predicate) |
Tuple2<CharSeq,CharSeq> |
CharSeq.splitAtInclusive(java.util.function.Predicate<? super java.lang.Character> predicate) |
Tuple2<CharSeq,CharSeq> |
CharSeq.splitAtInclusive(java.util.function.Predicate<? super java.lang.Character> predicate) |
Option<CharSeq> |
CharSeq.tailOption() |
Modifier and Type | Method and Description |
---|---|
int |
CharSeq.compareTo(CharSeq anotherString)
Compares two strings lexicographically.
|
int |
CharSeq.compareToIgnoreCase(CharSeq str)
Compares two strings lexicographically, ignoring case
differences.
|
CharSeq |
CharSeq.concat(CharSeq str)
Concatenates the specified string to the end of this string.
|
boolean |
CharSeq.endsWith(CharSeq suffix)
Tests if this string ends with the specified suffix.
|
boolean |
CharSeq.equalsIgnoreCase(CharSeq anotherString)
Compares this
CharSeq to another CharSeq , ignoring case
considerations. |
int |
CharSeq.indexOf(CharSeq str)
Returns the index within this string of the first occurrence of the
specified substring.
|
int |
CharSeq.indexOf(CharSeq str,
int fromIndex)
Returns the index within this string of the first occurrence of the
specified substring, starting at the specified index.
|
Option<java.lang.Integer> |
CharSeq.indexOfOption(CharSeq str)
Returns the index of the first occurrence of the given element as an
Option . |
Option<java.lang.Integer> |
CharSeq.indexOfOption(CharSeq str,
int fromIndex)
Returns the index of the first occurrence of the given element as an
Option ,
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.
|
Option<java.lang.Integer> |
CharSeq.lastIndexOfOption(CharSeq str)
Returns the index of the last occurrence of the given element as an
Option . |
Option<java.lang.Integer> |
CharSeq.lastIndexOfOption(CharSeq str,
int fromIndex)
Returns the index of the last occurrence of the given element as an
Option ,
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.
|
Modifier and Type | Method and Description |
---|---|
<U> U |
CharSeq.transform(java.util.function.Function<? super CharSeq,? extends U> f)
Transforms this
CharSeq . |
Copyright © 2017. All Rights Reserved.