| Package | Description |
|---|---|
| org.osgl | |
| org.osgl.util |
| Modifier and Type | Field and Description |
|---|---|
static Osgl.Comparator |
Osgl.F.NATURAL_ORDER |
static Osgl.Comparator |
Osgl.F.REVERSE_ORDER |
| Modifier and Type | Method and Description |
|---|---|
static <T> Osgl.Comparator<T> |
Osgl.comparator(Comparator<? super T> c)
Adapt a jdk
Comparator into osgl Comparator |
static <T> Osgl.Comparator<T> |
Osgl.comparator(Osgl.Func2<? super T,? super T,Integer> f)
Adapt a general
Osgl.Func2 function with (T, T, Integer) type into Comparator |
static <T,U extends Comparable<? super U>> |
Osgl.F.comparing(Osgl.Function<? super T,? extends U> keyExtractor) |
static <T,U> Osgl.Comparator<T> |
Osgl.F.comparing(Osgl.Function<? super T,? extends U> keyExtractor,
Comparator<? super U> keyComparator)
Construct a
Comparator with a function to extract the key of type U from given object of type T and
a comparator to compare type U |
static <T extends Comparable<T>> |
Osgl.F.naturalOrder() |
static <T> Osgl.Comparator<T> |
Osgl.F.reverse(Comparator<? super T> c) |
Osgl.Comparator<T> |
Osgl.Comparator.reversed()
See Java 8 doc
|
static <T extends Comparable<? super T>> |
Osgl.F.reverseOrder() |
Osgl.Comparator<T> |
Osgl.Comparator.thenComparing(Comparator<? super T> other)
See Java 8 doc
|
<U extends Comparable<? super U>> |
Osgl.Comparator.thenComparing(Osgl.Function<? super T,? extends U> keyExtractor)
See Java 8 doc
|
<U extends Comparable<? super U>> |
Osgl.Comparator.thenComparing(Osgl.Function<? super T,? extends U> keyExtractor,
Comparator<? super U> keyComparator)
See Java 8 doc
|
| Modifier and Type | Field and Description |
|---|---|
Osgl.Comparator<StrBase> |
StrBase.F.NATURAL_ORDER |
Osgl.Comparator<StrBase> |
StrBase.F.REVERSE_ORDER |
Copyright © 2017. All Rights Reserved.