| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
Osgl.random(C.Range<T> range) |
| Modifier and Type | Class and Description |
|---|---|
class |
IntRange |
class |
LazyRange<ELEMENT>
Implement
C.Range using LazySeq. |
| Modifier and Type | Method and Description |
|---|---|
C.Range<ELEMENT> |
C.Range.accept(Osgl.Function<? super ELEMENT,?> visitor)
Iterate this
Traversable with a visitor function. |
C.Range<ELEMENT> |
C.Range.acceptLeft(Osgl.Function<? super ELEMENT,?> visitor)
Iterate through this sequence from head to tail with
the visitor function specified
|
C.Range<ELEMENT> |
C.Range.acceptRight(Osgl.Function<? super ELEMENT,?> visitor)
iterate through the range from tail to head
|
C.Range<ELEMENT> |
LazyRange.drop(int n) |
C.Range<ELEMENT> |
C.Range.each(Osgl.Function<? super ELEMENT,?> visitor) |
static C.Range<Integer> |
C.evenNumbers()
|
C.Range<ELEMENT> |
C.Range.forEach(Osgl.Function<? super ELEMENT,?> visitor) |
C.Range<ELEMENT> |
LazyRange.head(int n) |
C.Range<ELEMENT> |
C.Range.merge(C.Range<ELEMENT> r2)
Returns an new range this range and another range
r2 merged together. |
C.Range<ELEMENT> |
LazyRange.merge(C.Range<ELEMENT> r2) |
static C.Range<Integer> |
C.naturalNumbers()
|
static C.Range<Integer> |
C.oddNumbers()
|
static C.Range<Byte> |
C.range(byte from,
byte to)
|
static C.Range<Integer> |
C.range(int from,
int to)
|
static C.Range<Long> |
C.range(long from,
long to)
|
static C.Range<Short> |
C.range(short from,
short to)
|
C.Range<ELEMENT> |
C.Range.reverse() |
C.Range<ELEMENT> |
LazyRange.reverse() |
C.Range<ELEMENT> |
LazyRange.tail() |
C.Range<ELEMENT> |
C.Range.tail(int n) |
C.Range<ELEMENT> |
LazyRange.tail(int n) |
C.Range<ELEMENT> |
LazyRange.take(int n) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
C.Range.containsAll(C.Range<ELEMENT> r2)
|
boolean |
LazyRange.containsAll(C.Range<ELEMENT> range) |
C.Range<ELEMENT> |
C.Range.merge(C.Range<ELEMENT> r2)
Returns an new range this range and another range
r2 merged together. |
C.Range<ELEMENT> |
LazyRange.merge(C.Range<ELEMENT> r2) |
Copyright © 2017. All Rights Reserved.