| 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.Sequence<Lang.Binary<T,Integer>> |
Lang.Var.zipWithIndex() |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
C.List<T>
The osgl List interface is a mixture of
List and osgl C.Sequence |
static interface |
C.ListOrSet<T> |
static interface |
C.Range<ELEMENT>
Define a Range data structure which contains a discrete sequence of elements start from
C.Range.from() until C.Range.to(). |
static interface |
C.ReversibleSequence<T>
A bidirectional sequence which can be iterated from tail to head
|
static interface |
S.List |
| Modifier and Type | Class and Description |
|---|---|
static class |
C.Array<T> |
class |
CompositeList<T>
Created with IntelliJ IDEA.
|
class |
FastStr
FastStr implements the same contract of Str with the a char array.
|
class |
IntRange |
class |
LazyRange<ELEMENT>
Implement
C.Range using LazySeq. |
class |
ListBase<T> |
static class |
S.Val |
static class |
S.Var |
class |
SequenceBase<T>
Provide default implementation to some
C.Sequence interface. |
class |
Str |
class |
StrBase<T extends StrBase<T>>
|
| Modifier and Type | Method and Description |
|---|---|
C.Sequence<T> |
C.Sequence.accept(Lang.Visitor<? super T> visitor) |
C.Sequence<T> |
SequenceBase.acceptLeft(Lang.Visitor<? super T> visitor) |
C.Sequence<T> |
C.Sequence.acceptLeft(Lang.Visitor<? super T> visitor)
Iterate through this sequence from head to tail with the visitor function specified
|
C.Sequence<T> |
SequenceBase.append(C.Sequence<? extends T> seq) |
C.Sequence<T> |
ListBase.append(C.Sequence<? extends T> seq) |
C.Sequence<T> |
C.Sequence.append(C.Sequence<? extends T> seq)
Returns a sequence consists of all elements of this sequence followed by all elements of the specified sequence.
|
C.Sequence<T> |
SequenceBase.append(Enumeration<? extends T> enumeration) |
C.Sequence<T> |
ListBase.append(Enumeration<? extends T> enumeration) |
C.Sequence<T> |
C.Sequence.append(Enumeration<? extends T> enumeration)
Returns a sequence consists of all elements of this sequence followed by all elements of the specified enumeration.
|
C.Sequence<T> |
SequenceBase.append(Iterable<? extends T> iterable) |
C.Sequence<T> |
ListBase.append(Iterable<? extends T> iterable) |
C.Sequence<T> |
C.Sequence.append(Iterable<? extends T> iterable)
Returns a sequence consists of all elements of this sequence followed by all elements of the specified iterable.
|
C.Sequence<T> |
SequenceBase.append(Iterator<? extends T> iterator) |
C.Sequence<T> |
ListBase.append(Iterator<? extends T> iterator) |
C.Sequence<T> |
C.Sequence.append(Iterator<? extends T> iterator)
Returns a sequence consists of all elements of this sequence followed by all elements of the specified iterator.
|
C.Sequence<T> |
SequenceBase.append(T t) |
C.Sequence<T> |
C.Sequence.append(T t)
Returns a sequence consists of all elements of this sequence followed by the element specified.
|
C.Sequence<T> |
C._FilterStage.by(Lang.Predicate<? super T> predicate) |
<R> C.Sequence<R> |
SequenceBase.collect(String path) |
<R> C.Sequence<R> |
C.Sequence.collect(String path) |
static <T> C.Sequence<T> |
C.concat(C.Sequence<T> s1,
C.Sequence<T> s2)
Concatenate two
C.Sequence into one |
C.Sequence<T> |
SequenceBase.drop(int n) |
C.Sequence<T> |
C.Sequence.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.Sequence<T> |
SequenceBase.dropWhile(Lang.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
C.Sequence.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.Sequence<T> |
SequenceBase.each(Lang.Visitor<? super T> visitor) |
C.Sequence<T> |
C.Sequence.each(Lang.Visitor<? super T> visitor) |
C.Sequence<T> |
SequenceBase.eager() |
C.Sequence<T> |
C.Sequence.eager()
Returns this traversable and make sure
C.Feature.LAZY is unset |
static <T> C.Sequence<T> |
C.filter(Iterable<? extends T> iterable,
Lang.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
SequenceBase.filter(Lang.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
C.Sequence.filter(Lang.Function<? super T,Boolean> predicate)
Returns an new traversable that contains all elements in the current traversable except that does not pass the test of the filter function specified.
|
<R> C.Sequence<R> |
SequenceBase.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<R> C.Sequence<R> |
C.Sequence.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.
|
C.Sequence<T> |
C.Sequence.forEach(Lang.Visitor<? super T> visitor) |
C.Sequence<T> |
SequenceBase.head(int n) |
C.Sequence<T> |
C.Sequence.head(int n)
Alias of
take(int) |
C.Sequence<T> |
SequenceBase.lazy() |
C.Sequence<T> |
C.Sequence.lazy()
Returns this traversable and make sure
C.Feature.LAZY is set |
static <PROPERTY> C.Sequence<PROPERTY> |
C.lazyExtract(Iterable<?> iterable,
String propertyPath) |
static <T,R> C.Sequence<R> |
C.map(Iterable<? extends T> seq,
Lang.Function<? super T,? extends R> mapper) |
<R> C.Sequence<R> |
SequenceBase.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.Sequence<R> |
C.Sequence.map(Lang.Function<? super T,? extends R> mapper)
Returns an new traversable with a mapper function specified.
|
C.Sequence<T> |
C._FilterStage2.on(Iterable<? extends T> source) |
C.Sequence<R> |
C._MapStage2.on(Iterable<T> source) |
C.Sequence<T> |
SequenceBase.parallel() |
C.Sequence<T> |
C.Sequence.parallel()
Returns this traversable and make sure
C.Feature.PARALLEL is set |
C.Sequence<T> |
SequenceBase.prepend(C.Sequence<? extends T> seq) |
C.Sequence<T> |
ListBase.prepend(C.Sequence<? extends T> seq)
Returns a sequence consists of all elements of the sequence specified followed by all elements of this sequence
|
C.Sequence<T> |
C.Sequence.prepend(C.Sequence<? extends T> seq)
Returns a sequence consists of all elements of the sequence specified followed by all elements of this sequence
|
C.Sequence<T> |
SequenceBase.prepend(Enumeration<? extends T> enumeration) |
C.Sequence<T> |
ListBase.prepend(Enumeration<? extends T> enumeration) |
C.Sequence<T> |
C.Sequence.prepend(Enumeration<? extends T> enumeration)
Returns a sequence consists of all elements of the enumeration specified followed by all elements of this sequence
|
C.Sequence<T> |
SequenceBase.prepend(Iterable<? extends T> iterable) |
C.Sequence<T> |
ListBase.prepend(Iterable<? extends T> iterable) |
C.Sequence<T> |
C.Sequence.prepend(Iterable<? extends T> iterable)
Returns a sequence consists of all elements of the iterable specified followed by all elements of this sequence
|
C.Sequence<T> |
SequenceBase.prepend(Iterator<? extends T> iterator) |
C.Sequence<T> |
ListBase.prepend(Iterator<? extends T> iterator) |
C.Sequence<T> |
C.Sequence.prepend(Iterator<? extends T> iterator)
Returns a sequence consists of all elements of the iterator specified followed by all elements of this sequence
|
C.Sequence<T> |
SequenceBase.prepend(T t) |
C.Sequence<T> |
C.Sequence.prepend(T t)
Returns a sequence consists of the element specified followed by all elements of this sequence.
|
static <T> C.Sequence<T> |
C.prepend(T t,
C.Sequence<T> sequence) |
static <T> C.Sequence<T> |
C.seq(Enumeration<? extends T> enumeration) |
static <T> C.Sequence<T> |
C.seq(Iterable<? extends T> iterable)
Return a
C.Sequence consists of all elements in the iterable specified |
static <T> C.Sequence<T> |
C.seq(Iterator<? extends T> iterator) |
C.Sequence<T> |
SequenceBase.sequential() |
C.Sequence<T> |
C.Sequence.sequential()
Returns this traversable and make sure
C.Feature.PARALLEL is unset |
C.Sequence<T> |
SequenceBase.tail() |
C.Sequence<T> |
C.Sequence.tail()
Returns the rest part of the
Sequence except the first element |
C.Sequence<T> |
SequenceBase.take(int n) |
C.Sequence<T> |
C.Sequence.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.Sequence<T> |
SequenceBase.takeWhile(Lang.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
C.Sequence.takeWhile(Lang.Function<? super T,Boolean> predicate)
Returns an new
Sequence that takes the head of this Sequence until the predicate evaluate to false: |
<R> C.Sequence<R> |
C._MapStage.with(Lang.Function<? super T,? extends R> mapper) |
<T2> C.Sequence<Lang.Binary<T,T2>> |
SequenceBase.zip(Iterable<T2> iterable) |
<T2> C.Sequence<? extends Lang.Binary<T,T2>> |
ListBase.zip(Iterable<T2> iterable) |
<T2> C.Sequence<? extends Lang.Binary<T,T2>> |
C.Sequence.zip(Iterable<T2> iterable)
Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs.
|
<T2> C.Sequence<Lang.Binary<T,T2>> |
SequenceBase.zipAll(Iterable<T2> iterable,
T def1,
T2 def2) |
<T2> C.Sequence<? extends Lang.Binary<T,T2>> |
ListBase.zipAll(Iterable<T2> iterable,
T def1,
T2 def2) |
<T2> C.Sequence<? extends Lang.Binary<T,T2>> |
C.Sequence.zipAll(Iterable<T2> iterable,
T def1,
T2 def2)
Returns a sequence formed from this sequence and another iterable collection by combining corresponding elements in pairs.
|
C.Sequence<Lang.Binary<T,Integer>> |
SequenceBase.zipWithIndex() |
C.Sequence<Lang.Binary<T,Integer>> |
ListBase.zipWithIndex() |
C.Sequence<? extends Lang.Binary<T,Integer>> |
C.Sequence.zipWithIndex()
Zip this sequence with its indices
|
C.Sequence<Lang.Binary<T,Integer>> |
C.List.zipWithIndex()
Zip this sequence with its indices
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Lang.F1<T,C.Sequence<? super T>> |
C.F.appendTo(C.Sequence<? super T> sequence)
Returns a function that append the argument to a
C.Sequence specified |
static <T> Lang.F1<T,C.Sequence<? super T>> |
C.F.prependTo(C.Sequence<? super T> sequence)
Returns a function that prepend the argument to a
C.Sequence specified |
static <T> Lang.Processor<C.Sequence<? super T>> |
C.F.sequenceAppend(T element)
Returns a function that append specified element to argument sequence
|
static <T> Lang.Processor<C.Sequence<? super T>> |
C.F.sequencePrepend(T element)
Returns a function that preppend specified element to argument sequence
|
| Modifier and Type | Method and Description |
|---|---|
C.Sequence<T> |
SequenceBase.append(C.Sequence<? extends T> seq) |
C.Sequence<T> |
ListBase.append(C.Sequence<? extends T> seq) |
C.Sequence<T> |
C.Sequence.append(C.Sequence<? extends T> seq)
Returns a sequence consists of all elements of this sequence followed by all elements of the specified sequence.
|
static <T> Lang.F1<T,C.Sequence<? super T>> |
C.F.appendTo(C.Sequence<? super T> sequence)
Returns a function that append the argument to a
C.Sequence specified |
static <T> C.Sequence<T> |
C.concat(C.Sequence<T> s1,
C.Sequence<T> s2)
Concatenate two
C.Sequence into one |
static <T> C.Sequence<T> |
C.concat(C.Sequence<T> s1,
C.Sequence<T> s2)
Concatenate two
C.Sequence into one |
static <T> int |
SequenceBase.count(C.Sequence<T> sequence,
T element) |
C.Sequence<T> |
SequenceBase.prepend(C.Sequence<? extends T> seq) |
C.Sequence<T> |
ListBase.prepend(C.Sequence<? extends T> seq)
Returns a sequence consists of all elements of the sequence specified followed by all elements of this sequence
|
C.Sequence<T> |
C.Sequence.prepend(C.Sequence<? extends T> seq)
Returns a sequence consists of all elements of the sequence specified followed by all elements of this sequence
|
static <T> C.Sequence<T> |
C.prepend(T t,
C.Sequence<T> sequence) |
static <T> Lang.F1<T,C.Sequence<? super T>> |
C.F.prependTo(C.Sequence<? super T> sequence)
Returns a function that prepend the argument to a
C.Sequence specified |
Copyright © 2014–2019 OSGL (Open Source General Library). All rights reserved.