| 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 | 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 |
C.Sequence<T> |
static interface |
C.Set<T> |
| 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 |
SetBase<T> |
class |
Str |
class |
StrBase<T extends StrBase<T>>
|
class |
TraversableBase<T>
Provide default implementation to some
C.Traversable interface |
| Modifier and Type | Method and Description |
|---|---|
C.Traversable<T> |
C.Traversable.accept(Osgl.Function<? super T,?> visitor)
Iterate this
Traversable with a visitor function. |
C.Traversable<T> |
TraversableBase.accept(Osgl.Function<? super T,?> visitor) |
C.Traversable<T> |
C.Traversable.each(Osgl.Function<? super T,?> visitor)
Alias of
accept(Osgl.Function) |
C.Traversable<T> |
TraversableBase.each(Osgl.Function<? super T,?> visitor) |
C.Traversable<T> |
C.Traversable.eager()
Returns this traversable and turn off
C.Feature.LAZY |
C.Traversable<T> |
TraversableBase.eager() |
C.Traversable<T> |
C.Traversable.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.Traversable<T> |
TraversableBase.filter(Osgl.Function<? super T,Boolean> predicate) |
<R> C.Traversable<R> |
C.Traversable.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.Traversable<R> |
TraversableBase.flatMap(Osgl.Function<? super T,? extends Iterable<? extends R>> mapper) |
C.Traversable<T> |
C.Traversable.forEach(Osgl.Function<? super T,?> visitor)
Alias of
accept(Osgl.Function) |
C.Traversable<T> |
C.Traversable.lazy()
Returns this traversable and try to turn on
C.Feature.LAZY. |
C.Traversable<T> |
TraversableBase.lazy() |
<R> C.Traversable<R> |
C.Traversable.map(Osgl.Function<? super T,? extends R> mapper)
Returns an new traversable with a mapper function specified.
|
<R> C.Traversable<R> |
TraversableBase.map(Osgl.Function<? super T,? extends R> mapper) |
C.Traversable<T> |
C.Traversable.parallel()
Returns this traversable and try to turn on
C.Feature.PARALLEL. |
C.Traversable<T> |
TraversableBase.parallel() |
C.Traversable<T> |
C.Traversable.sequential()
Returns this traversable and turn off
C.Feature.PARALLEL |
C.Traversable<T> |
TraversableBase.sequential() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
C.isImmutable(C.Traversable<?> t)
Check if a
C.Traversable structure is immutable. |
static boolean |
C.isReadOnly(C.Traversable<?> t)
Check if a
C.Traversable structure is read only. |
Copyright © 2017. All Rights Reserved.