Enum TxnSortOrder
java.lang.Object
java.lang.Enum<TxnSortOrder>
com.infinitekind.moneydance.model.TxnSortOrder
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<TxnSortOrder>
,java.lang.constant.Constable
,java.util.Comparator<AbstractTxn>
public enum TxnSortOrder extends java.lang.Enum<TxnSortOrder> implements java.util.Comparator<AbstractTxn>
Copyright (C) 2019 The Infinite Kind, Limited
Created by sreilly - 2019-08-09 14:02
-
Nested Class Summary
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description int
compare(AbstractTxn t1, AbstractTxn t2)
static TxnSortOrder
defaultDateOrder()
TxnSortOrder
derivedOrder(boolean ascending)
static TxnSortOrder
fromFieldID(java.lang.String fieldID, boolean ascending)
static TxnSortOrder
fromInt(int sortID, boolean ascending)
TxnSortOrder
getAscendingOrder()
java.util.Comparator<Txn>
getComparator()
TxnSortOrder
getDescendingOrder()
java.lang.String
getFieldID()
Returns a string that identifies the field or fields being sorted, but not the ascending/descending order.TxnSortOrder
getInvertedOrder()
int
getLegacyID()
boolean
isAscending()
boolean
isDateOrder()
static TxnSortOrder
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static TxnSortOrder[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
DATE
-
DATE_ENTERED
-
DESCRIPTION
-
ACCOUNT
-
CATEGORY
-
AMOUNT
-
DATE_THEN_AMOUNT
-
DATE_THEN_STATUS
-
DATE_THEN_CHECKNUM
-
TAXDATE_THEN_CHECKNUM
-
CHECKNUM
-
CHECKNUM_PARENT
-
CHECKNUM_INT
-
STATUS_THEN_CKNUM
-
STATUS_THEN_DATE
-
ACTION
-
REVERSE_DATE
-
REVERSE_DATE_ENTERED
-
REVERSE_DESCRIPTION
-
REVERSE_ACCOUNT
-
REVERSE_CATEGORY
-
REVERSE_AMOUNT
-
REVERSE_DATE_THEN_AMOUNT
-
REVERSE_DATE_THEN_STATUS
-
REVERSE_DATE_THEN_CHECKNUM
-
REVERSE_TAXDATE_THEN_CHECKNUM
-
REVERSE_CHECKNUM
-
REVERSE_CHECKNUM_PARENT
-
REVERSE_CHECKNUM_INT
-
REVERSE_STATUS_THEN_CKNUM
-
REVERSE_STATUS_THEN_DATE
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
defaultDateOrder
-
fromInt
-
fromFieldID
-
getComparator
-
isAscending
public boolean isAscending() -
getInvertedOrder
-
getAscendingOrder
-
getDescendingOrder
-
compare
- Specified by:
compare
in interfacejava.util.Comparator<AbstractTxn>
-
isDateOrder
public boolean isDateOrder() -
derivedOrder
-
getLegacyID
public int getLegacyID() -
getFieldID
public java.lang.String getFieldID()Returns a string that identifies the field or fields being sorted, but not the ascending/descending order.
-