| 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 | 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> |
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 |
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> |
TraversableBase.accept(Lang.Visitor<? super T> visitor) |
C.Traversable<T> |
C.Traversable.accept(Lang.Visitor<? super T> visitor)
Iterate this
Traversable with a visitor function. |
<R> C.Traversable<R> |
SetBase.collect(String path) |
<R> C.Traversable<R> |
TraversableBase.collect(String path) |
<R> C.Traversable<R> |
C.Traversable.collect(String path) |
C.Traversable<T> |
TraversableBase.each(Lang.Visitor<? super T> visitor) |
C.Traversable<T> |
C.Traversable.each(Lang.Visitor<? super T> visitor)
Alias of
accept(Lang.Visitor) |
C.Traversable<T> |
TraversableBase.eager() |
C.Traversable<T> |
C.Traversable.eager()
Returns this traversable and turn off
C.Feature.LAZY |
C.Traversable<T> |
TraversableBase.filter(Lang.Function<? super T,Boolean> predicate) |
C.Traversable<T> |
C.Traversable.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.Traversable<R> |
SetBase.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<R> C.Traversable<R> |
TraversableBase.flatMap(Lang.Function<? super T,? extends Iterable<? extends R>> mapper) |
<R> C.Traversable<R> |
C.Traversable.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.Traversable<T> |
C.Traversable.forEach(Lang.Visitor<? super T> visitor)
Alias of
accept(Lang.Visitor) |
C.Traversable<T> |
TraversableBase.lazy() |
C.Traversable<T> |
C.Traversable.lazy()
Returns this traversable and try to turn on
C.Feature.LAZY. |
<R> C.Traversable<R> |
SetBase.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.Traversable<R> |
TraversableBase.map(Lang.Function<? super T,? extends R> mapper) |
<R> C.Traversable<R> |
C.Traversable.map(Lang.Function<? super T,? extends R> mapper)
Returns an new traversable with a mapper function specified.
|
C.Traversable<T> |
TraversableBase.parallel() |
C.Traversable<T> |
C.Traversable.parallel()
Returns this traversable and try to turn on
C.Feature.PARALLEL. |
C.Traversable<T> |
TraversableBase.sequential() |
C.Traversable<T> |
C.Traversable.sequential()
Returns this traversable and turn off
C.Feature.PARALLEL |
| 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 © 2014–2019 OSGL (Open Source General Library). All rights reserved.