| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util |
| Modifier and Type | Class and Description |
|---|---|
static class |
Lang.Val<T> |
static class |
Lang.Var<T> |
| Modifier and Type | Method and Description |
|---|---|
C.List<T> |
Lang.Var.acceptRight(Lang.IndexedVisitor<Integer,? super T> indexedVisitor) |
C.List<T> |
Lang.Var.acceptRight(Lang.Visitor<? super T> visitor) |
C.List<T> |
Lang.Var.drop(int n) |
C.List<T> |
Lang.Var.dropWhile(Lang.Function<? super T,Boolean> predicate) |
<R> C.List<R> |
Lang.Var.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
C.List<T> |
Lang.Var.insert(int index,
List<T> subList) |
C.List<T> |
Lang.Var.insert(int index,
T... ta) |
C.List<T> |
Lang.Var.insert(int index,
T t) |
C.List<T> |
Lang.Var.remove(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
Lang.Var.reverse() |
C.List<T> |
Lang.Var.subList(int fromIndex,
int toIndex) |
C.List<T> |
Lang.Var.tail() |
C.List<T> |
Lang.Var.tail(int n) |
C.List<T> |
Lang.Var.take(int n) |
C.List<T> |
Lang.Var.takeWhile(Lang.Function<? super T,Boolean> predicate) |
C.List |
Lang.Tuple.toList() |
<E> C.List<? extends Lang.Binary<T,E>> |
Lang.Var.zip(Iterable<E> iterable) |
<B> C.List<Lang.Binary<T,B>> |
Lang.Var.zip(List<B> list) |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
C.ListOrSet<T> |
static interface |
S.List |
| Modifier and Type | Class and Description |
|---|---|
class |
CompositeList<T>
Created with IntelliJ IDEA.
|
class |
FastStr
FastStr implements the same contract of Str with the a char array.
|
class |
ListBase<T> |
static class |
S.Val |
static class |
S.Var |
class |
Str |
class |
StrBase<T extends StrBase<T>>
|
| Modifier and Type | Field and Description |
|---|---|
static C.List |
C.EMPTY_LIST |
| Modifier and Type | Method and Description |
|---|---|
static <L extends C.List<? super T>,T> |
C.F.add(int index,
T element)
Returns a function that add specified element into the argument list at specified position.
|
static <L extends C.List<? super T>,T> |
C.F.addTo(int index,
L destination)
Returns a function that add the argument into the specified list at specified position.
|
| Modifier and Type | Method and Description |
|---|---|
C.List<T> |
C.List.accept(Lang.IndexedVisitor<Integer,? super T> indexedVisitor)
Loop through the list and for each element, call on the indexedVisitor function specified
|
C.List<T> |
ListBase.accept(Lang.IndexedVisitor<Integer,? super T> indexedVisitor) |
C.List<T> |
C.List.accept(Lang.Visitor<? super T> visitor) |
C.List<T> |
ListBase.accept(Lang.Visitor<? super T> visitor) |
C.List<T> |
C.List.acceptLeft(Lang.IndexedVisitor<Integer,? super T> indexedVisitor)
Loop through the list from
0 to size - 1. |
C.List<T> |
ListBase.acceptLeft(Lang.IndexedVisitor<Integer,? super T> indexedVisitor) |
C.List<T> |
C.List.acceptLeft(Lang.Visitor<? super T> visitor) |
C.List<T> |
ListBase.acceptLeft(Lang.Visitor<? super T> visitor) |
C.List<T> |
C.List.acceptRight(Lang.IndexedVisitor<Integer,? super T> indexedVisitor)
Loop through the list from
size() - 1 to 0. |
C.List<T> |
ListBase.acceptRight(Lang.IndexedVisitor<Integer,? super T> indexedVisitor) |
C.List<T> |
C.List.acceptRight(Lang.Visitor<? super T> visitor) |
C.List<T> |
ListBase.acceptRight(Lang.Visitor<? super T> visitor) |
C.List<T> |
C.List.append(C.List<T> list)
Returns a List contains all elements in this List followed by all elements in the specified List.
|
C.List<T> |
ListBase.append(C.List<T> list) |
C.List<T> |
C.List.append(Collection<? extends T> iterable) |
C.List<T> |
ListBase.append(Collection<? extends T> collection) |
C.List<T> |
C.List.append(T t)
Returns a sequence consists of all elements of this sequence followed by the element specified.
|
C.List<T> |
ListBase.append(T t) |
protected C.List<T> |
ListBase.appendList(C.List<T> list) |
C.List<T> |
C.Sequence.asList()
Returns a List contains all the elements in this sequence with the same order.
|
C.List<T> |
C.Array.asList() |
C.List<T> |
ListBase.asList() |
C.List<T> |
SequenceBase.asList() |
C.List<T> |
C.Array.asNewList() |
<T> C.List<T> |
C._CollectStage.by(String propertyPath) |
static <T> C.List<T> |
C.collect(Iterable source,
String propertyPath) |
<R> C.List<R> |
C.List.collect(String path) |
<R> C.List<R> |
ListBase.collect(String path) |
static <T> C.List<T> |
C.concat(C.List<T> l1,
C.List<T> l2)
Concatenate two
List into one. |
C.List<T> |
C.List.copy()
Returns a mutable copy of this list
|
C.List<T> |
ListBase.copy() |
C.List<T> |
C.List.drop(int n)
Returns a
Sequence consisting of the elements from this Sequence except the first n if number n is positive and the Sequence contains more than n elements |
C.List<T> |
ListBase.drop(int n) |
C.List<T> |
C.List.dropWhile(Lang.Function<? super T,Boolean> predicate)
Returns a
Sequence consisting of the elements from this sequence with leading elements dropped until the predicate returns true |
C.List<T> |
ListBase.dropWhile(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
C.List.each(Lang.IndexedVisitor<Integer,? super T> indexedVisitor)
Alias of
#accept(Visitor) |
C.List<T> |
ListBase.each(Lang.IndexedVisitor<Integer,? super T> indexedVisitor) |
C.List<T> |
C.List.each(Lang.Visitor<? super T> visitor) |
C.List<T> |
ListBase.each(Lang.Visitor<? super T> visitor) |
C.List<T> |
C.List.eager()
Returns this traversable and make sure
C.Feature.LAZY is unset |
C.List<T> |
ListBase.eager() |
static <T> C.List<T> |
C.emptyListOf(Class<T> c) |
static <PROPERTY> C.List<PROPERTY> |
C.extract(Collection<?> collection,
String propertyPath)
Alias of
C.collect(Iterable, String) |
C.List<T> |
C.List.filter(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
ListBase.filter(Lang.Function<? super T,Boolean> predicate) |
<R> C.List<R> |
StrBase.flatMap(Lang.Function<? super Character,? extends Iterable<? extends R>> mapper) |
<R> C.List<R> |
C.List.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper)
Returns a traversable consisting of the results of replacing each element of this stream with the contents of the iterable produced by applying the provided mapping function to each element.
|
<R> C.List<R> |
ListBase.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
C.List<T> |
C.List.forEach(Lang.IndexedVisitor<Integer,? super T> indexedVisitor)
Alias of
#accept(Visitor) |
C.List<T> |
ListBase.forEach(Lang.IndexedVisitor<Integer,? super T> indexedVisitor) |
C.List<T> |
C.List.forEach(Lang.Visitor<? super T> visitor) |
C.List<T> |
ListBase.forEach(Lang.Visitor<? super T> visitor) |
C.List<String> |
S._SplitStage.get() |
C.List<T> |
C.List.head(int n)
Alias of
C.Sequence.take(int) |
C.List<T> |
ListBase.head(int n) |
C.List<T> |
C.List.insert(int index,
List<T> subList)
Insert a sub list at the position specified by
index. |
C.List<T> |
ListBase.insert(int index,
List<T> subList) |
C.List<T> |
C.List.insert(int index,
T... ta)
Insert an array of elements at the position specified by
index. |
C.List<T> |
ListBase.insert(int index,
T... ta) |
C.List<T> |
C.List.insert(int index,
T t)
Insert an element at the position specified by
index. |
C.List<T> |
ListBase.insert(int index,
T t) |
C.List<T> |
C.List.lazy()
Returns this traversable and make sure
C.Feature.LAZY is set |
C.List<T> |
ListBase.lazy() |
static <T> C.List<T> |
C.list()
Returns an empty immutable list
|
static C.List<Boolean> |
C.list(boolean[] elements)
Create an immutable Boolean list of a byte (primitive type) array.
|
static C.List<Byte> |
C.list(byte[] elements)
Create an immutable Byte list of a byte (primitive type) array.
|
static C.List<Character> |
C.list(char[] elements)
Create an immutable Character list of a char array.
|
static <T> C.List<T> |
C.list(Collection<? extends T> col) |
static C.List<Double> |
C.list(double[] elements)
Create an immutable Byte list of a double array.
|
static <T> C.List<T> |
C.list(Enumeration<? extends T> enumeration) |
static C.List<Float> |
C.list(float[] elements)
Create an immutable byte list of a float array.
|
static C.List<Integer> |
C.list(int[] elements)
Create an immutable integer list of a int array.
|
static <T> C.List<T> |
C.list(Iterable<? extends T> iterable) |
static <T> C.List<T> |
C.list(Iterator<? extends T> iterator) |
static <T> C.List<T> |
C.list(List<? extends T> javaList) |
static C.List<Long> |
C.list(long[] elements)
Create an immutable Long list of a long array.
|
static C.List<Short> |
C.list(short[] elements)
Create an immutable Short list of a short array.
|
static <T> C.List<T> |
C.list(T t) |
static <T> C.List<T> |
C.list(T t,
T... ta)
Creates an immutable list from an element plus an array of elements
|
static C.List<Boolean> |
C.listOf(boolean[] elements)
Create an immutable Boolean list from a boolean (primitive type) array.
|
static C.List<Byte> |
C.listOf(byte[] elements)
Create an immutable Byte list from a byte (primitive type) array.
|
static C.List<Character> |
C.listOf(char[] elements)
Create an immutable Short list from a char (primitive type) array.
|
static C.List<Double> |
C.listOf(double[] elements)
Create an immutable Double list from an double (primitive type) array.
|
static C.List<Float> |
C.listOf(float[] elements)
Create an immutable Float list from a float (primitive type) array.
|
static C.List<Integer> |
C.listOf(int[] elements)
Create an immutable Integer list from an int (primitive type) array.
|
static C.List<Long> |
C.listOf(long[] elements)
Create an immutable Long list from a long (primitive type) array.
|
static C.List<Short> |
C.listOf(short[] elements)
Create an immutable Short list from a short (primitive type) array.
|
static <T> C.List<T> |
C.listOf(T... ta)
Creates an immutable list of an array of elements.
|
<R> C.List<R> |
StrBase.map(Lang.Function<? super Character,? extends R> mapper) |
<R> C.List<R> |
C.List.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.List<R> |
ListBase.map(Lang.Function<? super T,? extends R> mapper) |
static <T> C.List<T> |
C.newList() |
static <T> C.List<T> |
C.newList(Iterable<? extends T> iterable) |
static <T> C.List<T> |
C.newList(T t) |
static <T> C.List<T> |
C.newList(T t1,
T t2) |
static <T> C.List<T> |
C.newList(T t1,
T t2,
T t3) |
static <T> C.List<T> |
C.newList(T t1,
T t2,
T t3,
T... ta) |
static <T> C.List<T> |
C.newListOf(T[] ts) |
static <T> C.List<T> |
C.newSizedList(int size) |
<T> C.List<T> |
C._CollectStage2.on(Iterable source) |
C.List<T> |
C.List.parallel()
Returns this traversable and make sure
C.Feature.PARALLEL is set |
C.List<T> |
ListBase.parallel() |
C.List<T> |
C.List.prepend(C.List<T> list) |
C.List<T> |
ListBase.prepend(C.List<T> list)
This method will NOT change the underline list
|
C.List<T> |
C.List.prepend(Collection<? extends T> collection) |
C.List<T> |
ListBase.prepend(Collection<? extends T> collection) |
C.List<T> |
C.List.prepend(T t) |
C.List<T> |
ListBase.prepend(T t)
Returns a sequence consists of the element specified followed by all elements of this sequence.
|
protected C.List<T> |
ListBase.prependList(C.List<T> list) |
C.List<T> |
C.List.readOnly()
Returns a view of this list that is readonly.
|
C.List<T> |
ListBase.readOnly() |
C.List<T> |
C.List.remove(Lang.Function<? super T,Boolean> predicate)
For mutable list, remove all element that matches the predicate specified from this List and return this list once done.
|
C.List<T> |
ListBase.remove(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
C.List.reverse() |
C.List<T> |
ListBase.reverse() |
C.List<T> |
C.List.sequential()
Returns this traversable and make sure
C.Feature.PARALLEL is unset |
C.List<T> |
ListBase.sequential() |
static <T> C.List<T> |
C.singletonList(T t) |
C.List<T> |
C.List.snapshot()
Returns an immutable list contains all elements of the current list.
|
C.List<T> |
ListBase.snapshot() |
C.List<T> |
C.List.sorted()
Returns a sorted copy of this list.
|
C.List<T> |
ListBase.sorted() |
C.List<T> |
C.List.sorted(Comparator<? super T> comparator)
Returns a sorted copy of this list.
|
C.List<T> |
ListBase.sorted(Comparator<? super T> comparator) |
C.List<T> |
StrBase.split(String regex) |
C.List<FastStr> |
FastStr.split(String regex,
int limit)
Wrapper of
String.split(String, int) but return an immutable List of FastStr instances |
abstract C.List<T> |
StrBase.split(String regex,
int limit) |
C.List<Str> |
Str.split(String regex,
int limit) |
C.List<T> |
C.List.subList(int fromIndex,
int toIndex) |
C.List<T> |
ListBase.subList(int fromIndex,
int toIndex) |
C.List<T> |
C.List.tail()
Returns the rest part of the
Sequence except the first element |
C.List<T> |
ListBase.tail() |
C.List<T> |
C.List.tail(int n)
Returns a
Sequence consisting the last n elements from this Sequence if number n is positive and the Sequence contains more than n elements |
C.List<T> |
ListBase.tail(int n) |
C.List<T> |
C.List.take(int n)
Returns a
Sequence consisting the first n elements from this Sequence if number n is positive and the Sequence contains more than n elements |
C.List<T> |
ListBase.take(int n) |
C.List<T> |
C.List.takeWhile(Lang.Function<? super T,Boolean> predicate)
Returns an new
Sequence that takes the head of this Sequence until the predicate evaluate to false: |
C.List<T> |
ListBase.takeWhile(Lang.Function<? super T,Boolean> predicate) |
C.List<T> |
ListBuilder.toList()
Return an immutable list contains all element of this list builder and then release references to the internal buffer.
|
static <T> C.List<T> |
ListBuilder.toList(Collection<? extends T> col)
Returns an immutable
C.List from a collection |
static <T> C.List<T> |
ListBuilder.toList(Enumeration<? extends T> enumeration) |
static <T> C.List<T> |
ListBuilder.toList(Iterable<? extends T> iterable)
Returns an immutable
C.List from iterable |
static <T> C.List<T> |
ListBuilder.toList(Iterator<? extends T> iterator)
Returns an immutable
C.List from an iterator |
C.List<T> |
C.List.unique()
Return a list that contains unique set of this list and keep the orders.
|
C.List<T> |
ListBase.unique() |
C.List<T> |
C.List.unique(Comparator<T> comp)
Return a list that contains unique set as per the comparator specified of this list and keep the orders.
|
C.List<T> |
ListBase.unique(Comparator<T> comp) |
C.List<T> |
C.List.without(Collection<? super T> col)
Returns a List contains all elements in this List and not in the
col collection specified |
C.List<T> |
ListBase.without(Collection<? super T> col) |
C.List<T> |
C.List.without(T element)
Returns a list contains all elements in the list except the one specified
|
C.List<T> |
ListBase.without(T element) |
C.List<T> |
C.List.without(T element,
T... elements)
Returns a list contains all elements in the list except the ones specified
|
C.List<T> |
ListBase.without(T element,
T... elements) |
static <T> C.List<T> |
C.wrap(List<T> list) |
<T2> C.List<Lang.Binary<T,T2>> |
C.List.zip(List<T2> list)
Returns a list formed from this list and another iterable collection by combining corresponding elements in pairs.
|
<T2> C.List<Lang.Binary<T,T2>> |
ListBase.zip(List<T2> list) |
<T2> C.List<Lang.Binary<T,T2>> |
C.List.zipAll(List<T2> list,
T def1,
T2 def2)
Returns a list formed from this list and another iterable collection by combining corresponding elements in pairs.
|
<T2> C.List<Lang.Binary<T,T2>> |
ListBase.zipAll(List<T2> list,
T def1,
T2 def2) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Lang.Predicate<C.List<? super T>> |
C.F.addAll(int index,
Collection<? extends T> source)
Returns a function that add all elements from the source collection specified into the argument list at the position specified
|
Lang.T2<C.List<T>,C.List<T>> |
C.List.split(Lang.Function<? super T,Boolean> predicate)
Split this list into two list based on the predicate specified.
|
Lang.T2<C.List<T>,C.List<T>> |
C.List.split(Lang.Function<? super T,Boolean> predicate)
Split this list into two list based on the predicate specified.
|
Lang.T2<C.List<T>,C.List<T>> |
ListBase.split(Lang.Function<? super T,Boolean> predicate) |
Lang.T2<C.List<T>,C.List<T>> |
ListBase.split(Lang.Function<? super T,Boolean> predicate) |
| Modifier and Type | Method and Description |
|---|---|
static <T> Lang.Predicate<Collection<? extends T>> |
C.F.addAllTo(int index,
C.List<? super T> destination)
Returns a function that add all elements from the argument collection into the destination list specified at the position specified
|
FastStr |
FastStr.append(C.List<Character> list) |
abstract T |
StrBase.append(C.List<Character> list)
Return a str instance contains all characters of this str instance append with all characters in the list specified
|
Str |
Str.append(C.List<Character> list) |
C.List<T> |
C.List.append(C.List<T> list)
Returns a List contains all elements in this List followed by all elements in the specified List.
|
C.List<T> |
ListBase.append(C.List<T> list) |
protected C.List<T> |
ListBase.appendList(C.List<T> list) |
static <T> C.List<T> |
C.concat(C.List<T> l1,
C.List<T> l2)
Concatenate two
List into one. |
static <T> C.List<T> |
C.concat(C.List<T> l1,
C.List<T> l2)
Concatenate two
List into one. |
FastStr |
FastStr.prepend(C.List<Character> list) |
abstract T |
StrBase.prepend(C.List<Character> list)
Return a str instance contains all characters of this str instance prepended with all characters in the list specified
|
Str |
Str.prepend(C.List<Character> list) |
C.List<T> |
C.List.prepend(C.List<T> list) |
C.List<T> |
ListBase.prepend(C.List<T> list)
This method will NOT change the underline list
|
protected C.List<T> |
ListBase.prependList(C.List<T> list) |
Copyright © 2014–2021 OSGL (Open Source General Library). All rights reserved.