Package | Description |
---|---|
javaslang | |
javaslang.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(CharSequence sequence)
Alias for
of(CharSequence) |
default CharSeq |
Value.toCharSeq()
Converts this to a
CharSeq . |
Modifier and Type | Method and Description |
---|---|
CharSeq |
CharSeq.append(Character element) |
CharSeq |
CharSeq.appendAll(Iterable<? extends Character> elements) |
CharSeq |
CharSeq.capitalize()
Converts the first character in this
CharSeq to upper
case using the rules of the default locale. |
CharSeq |
CharSeq.capitalize(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(Comparator<? super Character> comparator) |
<U> CharSeq |
CharSeq.distinctBy(Function<? super Character,? extends U> keyExtractor) |
CharSeq |
CharSeq.drop(int n) |
CharSeq |
CharSeq.dropRight(int n) |
CharSeq |
CharSeq.dropUntil(Predicate<? super Character> predicate) |
CharSeq |
CharSeq.dropWhile(Predicate<? super Character> predicate) |
static CharSeq |
CharSeq.empty() |
static CharSeq |
CharSeq.fill(int n,
Supplier<? extends Character> s)
Returns a CharSeq containing
n values supplied by a given Supplier s . |
CharSeq |
CharSeq.filter(Predicate<? super Character> predicate) |
CharSeq |
CharSeq.flatMapChars(CharSeq.CharFunction<? extends CharSequence> mapper) |
CharSeq |
CharSeq.init() |
CharSeq |
CharSeq.insert(int index,
Character element) |
CharSeq |
CharSeq.insertAll(int index,
Iterable<? extends Character> elements) |
CharSeq |
CharSeq.intersperse(Character element) |
CharSeq |
CharSeq.leftPadTo(int length,
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(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... characters)
Creates a String of the given characters.
|
static CharSeq |
CharSeq.of(char character)
Returns a singleton
CharSeq , i.e. |
static CharSeq |
CharSeq.of(CharSequence sequence)
Creates a String of
CharSequence . |
static CharSeq |
CharSeq.ofAll(Iterable<? extends Character> elements)
Creates a String of the given elements.
|
CharSeq |
CharSeq.padTo(int length,
Character element) |
CharSeq |
CharSeq.patch(int from,
Iterable<? extends Character> that,
int replaced) |
CharSeq |
CharSeq.peek(Consumer<? super Character> action) |
CharSeq |
CharSeq.prepend(Character element) |
CharSeq |
CharSeq.prependAll(Iterable<? extends 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(Character element) |
CharSeq |
CharSeq.removeAll(Character element) |
CharSeq |
CharSeq.removeAll(Iterable<? extends Character> elements) |
CharSeq |
CharSeq.removeAll(Predicate<? super Character> predicate) |
CharSeq |
CharSeq.removeAt(int index) |
CharSeq |
CharSeq.removeFirst(Predicate<Character> predicate) |
CharSeq |
CharSeq.removeLast(Predicate<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(Character currentElement,
Character newElement) |
CharSeq |
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 |
CharSeq.replaceAll(Character currentElement,
Character newElement) |
CharSeq |
CharSeq.replaceAll(String regex,
String replacement)
Replaces each substring of this string that matches the given regular expression with the
given replacement.
|
CharSeq |
CharSeq.replaceFirst(String regex,
String replacement)
Replaces the first substring of this string that matches the given regular expression with the
given replacement.
|
CharSeq |
CharSeq.retainAll(Iterable<? extends Character> elements) |
CharSeq |
CharSeq.reverse() |
CharSeq |
CharSeq.scan(Character zero,
BiFunction<? super Character,? super Character,? extends Character> operation) |
CharSeq |
CharSeq.shuffle() |
CharSeq |
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>> |
CharSeq.sortBy(Function<? super Character,? extends U> mapper) |
CharSeq |
CharSeq.sorted() |
CharSeq |
CharSeq.sorted(Comparator<? super Character> comparator) |
CharSeq[] |
CharSeq.split(String regex)
Deprecated.
|
CharSeq[] |
CharSeq.split(String regex,
int limit)
Deprecated.
|
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,
Function<? super Integer,? extends 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(Predicate<? super Character> predicate) |
CharSeq |
CharSeq.takeWhile(Predicate<? super 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(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(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(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.
|
CharSeq |
CharSeq.update(int index,
Character element) |
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<Integer> |
CharSeq.indexOfOption(CharSeq str)
Returns the index of the first occurrence of the given element as an
Option . |
Option<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<Integer> |
CharSeq.lastIndexOfOption(CharSeq str)
Returns the index of the last occurrence of the given element as an
Option . |
Option<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(Function<? super CharSeq,? extends U> f)
Transforms this
CharSeq . |
Copyright © 2016. All Rights Reserved.