|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.security.AccountComparator
public abstract class AccountComparator
Base class used for constructing sort comparators for account objects.
Field Summary | |
---|---|
static java.util.Comparator |
BY_DESCRIPTION
Sort comparator that will sort alphabetically by the account description. |
static java.util.Comparator |
BY_FIRST_NAME
Sort comparator that will sort alphabetically by the first name. |
static java.util.Comparator |
BY_LAST_NAME
Sort comparator that will sort alphabetically by the last name. |
static java.lang.String |
CLASS_VERSION
|
Constructor Summary | |
---|---|
AccountComparator()
|
Method Summary | |
---|---|
protected static int |
compareStrings(java.lang.String s1,
java.lang.String s2)
Compares two strings in a case-independent manner. |
static boolean |
equals(java.lang.Object o1,
java.lang.Object o2)
Returns true if both account objects have equivalent login, first name, last name, and description. |
protected static boolean |
equalStrings(java.lang.String s1,
java.lang.String s2)
Compares two strings for equivalence. |
static java.lang.String |
getDescription(Account pAccount)
Returns the description of the account, if applicable. |
static java.lang.String |
getFirstName(Account pAccount)
Returns the first name of the account owner, if applicable. |
static java.lang.String |
getLastName(Account pAccount)
Returns the last name of the account holder, if applicable. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
compare, equals |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.util.Comparator BY_DESCRIPTION
public static final java.util.Comparator BY_FIRST_NAME
public static final java.util.Comparator BY_LAST_NAME
Constructor Detail |
---|
public AccountComparator()
Method Detail |
---|
protected static int compareStrings(java.lang.String s1, java.lang.String s2)
protected static boolean equalStrings(java.lang.String s1, java.lang.String s2)
public static java.lang.String getDescription(Account pAccount)
public static java.lang.String getFirstName(Account pAccount)
public static java.lang.String getLastName(Account pAccount)
public static boolean equals(java.lang.Object o1, java.lang.Object o2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |