public class Comparables extends Object
Modifier and Type | Class and Description |
---|---|
private static class |
Comparables.InheritanceComparator<T> |
private static class |
Comparables.VersionComparator |
Modifier and Type | Field and Description |
---|---|
static int |
EQUAL |
static int |
GREATER |
static int |
LESS |
Modifier | Constructor and Description |
---|---|
private |
Comparables() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.collect.ComparisonChain |
chain(Object o) |
static int |
compare(boolean x,
boolean y) |
static int |
compare(byte x,
byte y) |
static int |
compare(char x,
char y) |
static int |
compare(double a,
double b) |
static int |
compare(float a,
float b) |
static int |
compare(int x,
int y) |
static int |
compare(long x,
long y) |
static int |
compare(short x,
short y) |
static <T extends Comparable<T>> |
compare(T a,
T b) |
static <T> com.google.common.collect.Ordering<T> |
inheritance() |
static com.google.common.collect.Ordering<String> |
version() |
public static final int LESS
public static final int EQUAL
public static final int GREATER
public static int compare(int x, int y)
public static int compare(byte x, byte y)
public static int compare(short x, short y)
public static int compare(char x, char y)
public static int compare(long x, long y)
public static int compare(boolean x, boolean y)
public static int compare(float a, float b)
public static int compare(double a, double b)
public static <T extends Comparable<T>> int compare(T a, T b)
public static com.google.common.collect.ComparisonChain chain(Object o)
public static <T> com.google.common.collect.Ordering<T> inheritance()
public static com.google.common.collect.Ordering<String> version()
Copyright © 2012-2015 52north.org. All Rights Reserved.