T - the element typepublic class ElementOrderMethod<T>
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ElementOrderMethod.Type
Element order method type
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Comparator<T> |
comparator()
Get the comparator.
|
static <T> ElementOrderMethod<T> |
comparator(java.util.Comparator<T> comparator)
Get the comparator ordering method.
|
ElementOrderMethod.Type |
getType()
Get the type
|
static <T> ElementOrderMethod<T> |
guavaComparator()
Get the guava comparator ordering method.
|
static <T> ElementOrderMethod<T> |
internal()
Get the internal ordering method.
|
static <T> ElementOrderMethod<T> |
natural()
Get the natural ordering method
|
public static <T> ElementOrderMethod<T> natural()
T - the element typepublic static <T> ElementOrderMethod<T> internal()
T - the element typepublic static <T> ElementOrderMethod<T> comparator(java.util.Comparator<T> comparator)
T - the element typecomparator - the actual comparatorpublic static <T> ElementOrderMethod<T> guavaComparator()
T - the element typepublic java.util.Comparator<T> comparator()
public ElementOrderMethod.Type getType()
Copyright © 2021. All rights reserved.