| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util |
| Modifier and Type | Class and Description |
|---|---|
static class |
Osgl.Val<T> |
static class |
Osgl.Var<T> |
| Modifier and Type | Method and Description |
|---|---|
C.Sequence<Osgl.T2<T,Integer>> |
Osgl.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
|
| 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> |
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(Osgl.Function<? super T,?> visitor) |
C.Sequence<T> |
C.Sequence.acceptLeft(Osgl.Function<? super T,?> visitor)
Iterate through this sequence from head to tail with
the visitor function specified
|
C.Sequence<T> |
SequenceBase.acceptLeft(Osgl.Function<? super T,?> visitor) |
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> |
ListBase.append(C.Sequence<? extends T> seq) |
C.Sequence<T> |
SequenceBase.append(C.Sequence<? extends T> seq) |
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> |
ListBase.append(Enumeration<? extends T> enumeration) |
C.Sequence<T> |
SequenceBase.append(Enumeration<? extends T> enumeration) |
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> |
ListBase.append(Iterable<? extends T> iterable) |
C.Sequence<T> |
SequenceBase.append(Iterable<? extends T> iterable) |
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> |
ListBase.append(Iterator<? extends T> iterator) |
C.Sequence<T> |
SequenceBase.append(Iterator<? extends T> iterator) |
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> |
SequenceBase.append(T t) |
static <T> C.Sequence<T> |
C.concat(C.Sequence<T> s1,
C.Sequence<T> s2)
Concatenate two
C.Sequence into one |
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.drop(int n) |
C.Sequence<T> |
C.Sequence.dropWhile(Osgl.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.dropWhile(Osgl.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
C.Sequence.each(Osgl.Function<? super T,?> visitor) |
C.Sequence<T> |
SequenceBase.each(Osgl.Function<? super T,?> visitor) |
C.Sequence<T> |
C.Sequence.eager()
Returns this traversable and make sure
C.Feature.LAZY is unset |
C.Sequence<T> |
SequenceBase.eager() |
static <T> C.Sequence<T> |
C.filter(C.Sequence<T> seq,
Osgl.Function<? super T,Boolean> predicate) |
C.Sequence<T> |
C.Sequence.filter(Osgl.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.
|
C.Sequence<T> |
SequenceBase.filter(Osgl.Function<? super T,Boolean> predicate) |
<R> C.Sequence<R> |
C.Sequence.flatMap(Osgl.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.Sequence<R> |
SequenceBase.flatMap(Osgl.Function<? super T,? extends Iterable<? extends R>> mapper) |
C.Sequence<T> |
C.Sequence.forEach(Osgl.Function<? super T,?> visitor) |
C.Sequence<T> |
C.Sequence.head(int n)
Alias of
take(int) |
C.Sequence<T> |
SequenceBase.head(int n) |
C.Sequence<T> |
C.Sequence.lazy()
Returns this traversable and make sure
C.Feature.LAZY is set |
C.Sequence<T> |
SequenceBase.lazy() |
static <T,R> C.Sequence<R> |
C.map(C.Sequence<T> seq,
Osgl.Function<? super T,? extends R> mapper) |
<R> C.Sequence<R> |
C.Sequence.map(Osgl.Function<? super T,? extends R> mapper)
Returns an new traversable with a mapper function specified.
|
<R> C.Sequence<R> |
SequenceBase.map(Osgl.Function<? super T,? extends R> mapper) |
C.Sequence<T> |
C.Sequence.parallel()
Returns this traversable and make sure
C.Feature.PARALLEL is set |
C.Sequence<T> |
SequenceBase.parallel() |
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> |
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> |
SequenceBase.prepend(C.Sequence<? extends T> seq) |
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> |
ListBase.prepend(Enumeration<? extends T> enumeration) |
C.Sequence<T> |
SequenceBase.prepend(Enumeration<? extends T> enumeration) |
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> |
ListBase.prepend(Iterable<? extends T> iterable) |
C.Sequence<T> |
SequenceBase.prepend(Iterable<? extends T> iterable) |
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> |
ListBase.prepend(Iterator<? extends T> iterator) |
C.Sequence<T> |
SequenceBase.prepend(Iterator<? extends T> iterator) |
C.Sequence<T> |
C.Sequence.prepend(T t)
Returns a sequence consists of the element specified followed by
all elements of this sequence.
|
C.Sequence<T> |
SequenceBase.prepend(T t) |
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> |
C.Sequence.sequential()
Returns this traversable and make sure
C.Feature.PARALLEL is unset |
C.Sequence<T> |
SequenceBase.sequential() |
C.Sequence<T> |
C.Sequence.tail()
Returns the rest part of the
Sequence except the first element |
C.Sequence<T> |
SequenceBase.tail() |
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.take(int n) |
C.Sequence<T> |
C.Sequence.takeWhile(Osgl.Function<? super T,Boolean> predicate)
Returns an new
Sequence that takes the head of this Sequence until the predicate
evaluate to false: |
C.Sequence<T> |
SequenceBase.takeWhile(Osgl.Function<? super T,Boolean> predicate) |
<T2> C.Sequence<Osgl.T2<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<Osgl.T2<T,T2>> |
ListBase.zip(Iterable<T2> iterable) |
<T2> C.Sequence<Osgl.T2<T,T2>> |
SequenceBase.zip(Iterable<T2> iterable) |
<T2> C.Sequence<Osgl.T2<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.
|
<T2> C.Sequence<Osgl.T2<T,T2>> |
ListBase.zipAll(Iterable<T2> iterable,
T def1,
T2 def2) |
<T2> C.Sequence<Osgl.T2<T,T2>> |
SequenceBase.zipAll(Iterable<T2> iterable,
T def1,
T2 def2) |
C.Sequence<Osgl.T2<T,Integer>> |
C.Sequence.zipWithIndex()
Zip this sequence with its indices
|
C.Sequence<Osgl.T2<T,Integer>> |
C.List.zipWithIndex()
Zip this sequence with its indices
|
C.Sequence<Osgl.T2<T,Integer>> |
ListBase.zipWithIndex() |
C.Sequence<Osgl.T2<T,Integer>> |
SequenceBase.zipWithIndex() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Osgl.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> Osgl.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> Osgl.Processor<C.Sequence<? super T>> |
C.F.sequenceAppend(T element)
Returns a function that append specified element to argument sequence
|
static <T> Osgl.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> |
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> |
ListBase.append(C.Sequence<? extends T> seq) |
C.Sequence<T> |
SequenceBase.append(C.Sequence<? extends T> seq) |
static <T> Osgl.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) |
static <T> C.Sequence<T> |
C.filter(C.Sequence<T> seq,
Osgl.Function<? super T,Boolean> predicate) |
static <T,R> C.Sequence<R> |
C.map(C.Sequence<T> seq,
Osgl.Function<? super T,? extends R> mapper) |
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> |
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> |
SequenceBase.prepend(C.Sequence<? extends T> seq) |
static <T> C.Sequence<T> |
C.prepend(T t,
C.Sequence<T> sequence) |
static <T> Osgl.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 © 2017. All Rights Reserved.