@Entity @GwtCompatible public final class SortInfo extends java.lang.Object implements ReadOnlySortInfo, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ASCENDING_FIELD_NAME |
static java.lang.String |
FIELD_FIELD_NAME |
static java.lang.String |
LOCAL_PART |
static javax.xml.namespace.QName |
QNAME |
static java.lang.String |
TABLE_NAME |
Constructor and Description |
---|
SortInfo()
Should not be used, only exposed for serializers that require a public
parameterless constructor.
|
SortInfo(java.lang.String field,
boolean ascending) |
Modifier and Type | Method and Description |
---|---|
static SortInfo |
asc(java.lang.String field)
Convenience method for returning a SortInfo with ascending sort.
|
static SortInfo |
desc(java.lang.String field)
Convenience method for returning a SortInfo with descending sort.
|
boolean |
equals(java.lang.Object obj)
Returns a boolean value indicating whether the given object is equal to
this object.
|
static com.google.common.base.Predicate<SortInfo> |
fieldEqualsPredicate(java.lang.String targetFieldName)
|
java.lang.String |
getField()
Returns the field to sort by.
|
int |
hashCode()
Returns a hash code value for the object.
|
boolean |
isAscending()
Returns a boolean indicating whether sort on
getField() should be
in ascending or descending order. |
java.lang.String |
toString()
Returns a string representation of the
SortInfo |
public static final java.lang.String FIELD_FIELD_NAME
public static final java.lang.String ASCENDING_FIELD_NAME
public static final java.lang.String TABLE_NAME
public static final java.lang.String LOCAL_PART
public static final javax.xml.namespace.QName QNAME
public SortInfo()
public SortInfo(java.lang.String field, boolean ascending)
field
- the field to sort by. May be a simple field name, or dot notation
to specify a subfield (e.g., "complexField.subField")ascending
- if true, indicates that the sort on getField()
should be in
ascending order. If false, indicates that the sort should be in
descending order.public java.lang.String getField()
getField
in interface ReadOnlySortInfo
public boolean isAscending()
getField()
should be
in ascending or descending order. If true, indicates that the sort should
be in ascending order. If false, indicates that the sort should be in
descending order.isAscending
in interface ReadOnlySortInfo
public static SortInfo asc(java.lang.String field)
public static SortInfo desc(java.lang.String field)
public java.lang.String toString()
SortInfo
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- the reference object with which to compare.true
if both objects are equal, otherwise
false
public static com.google.common.base.Predicate<SortInfo> fieldEqualsPredicate(java.lang.String targetFieldName)
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.