public enum CassandraPrimaryKeyColumnAnnotationComparator extends Enum<CassandraPrimaryKeyColumnAnnotationComparator> implements Comparator<PrimaryKeyColumn>
Comparator
implementation that uses, in order, the...
PrimaryKeyColumn.type()
, then, if ordered the same,PrimaryKeyColumn.ordinal()
, then, if ordered the samePrimaryKeyColumn.name()
, then, if ordered the same,PrimaryKeyColumn.ordering()
.PrimaryKeyType.compare(PrimaryKeyType, PrimaryKeyType)
,
Ordering.compare(Ordering, Ordering)
,
Comparator
,
PrimaryKeyColumn
Enum Constant and Description |
---|
INSTANCE
Comparator instance.
|
IT
Deprecated.
as of 1.5, use
INSTANCE |
Modifier and Type | Method and Description |
---|---|
int |
compare(PrimaryKeyColumn left,
PrimaryKeyColumn right) |
static CassandraPrimaryKeyColumnAnnotationComparator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CassandraPrimaryKeyColumnAnnotationComparator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static final CassandraPrimaryKeyColumnAnnotationComparator INSTANCE
@Deprecated public static final CassandraPrimaryKeyColumnAnnotationComparator IT
INSTANCE
public static CassandraPrimaryKeyColumnAnnotationComparator[] values()
for (CassandraPrimaryKeyColumnAnnotationComparator c : CassandraPrimaryKeyColumnAnnotationComparator.values()) System.out.println(c);
public static CassandraPrimaryKeyColumnAnnotationComparator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int compare(PrimaryKeyColumn left, PrimaryKeyColumn right)
compare
in interface Comparator<PrimaryKeyColumn>
Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.