|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<EqualityMethod> edu.nrao.sss.util.EqualityMethod
public enum EqualityMethod
An enumeration of the ways that two objects may be compared for equality.
CVS Info:
$Revision: 161 $ |
$Date: 2006-12-15 11:48:34 -0700 (Fri, 15 Dec 2006) $ |
$Author: btruitt $ |
Enum Constant Summary | |
---|---|
REFERENCE
Indicates that objects should be compared by reference, that is by the == operator. |
|
VALUE
Indicates that objects should be compared by value, that is by the equals method. |
Method Summary | |
---|---|
abstract boolean |
deemsObjectsEqual(Object o1,
Object o2)
Returns true if o1 is equal to o2 according to the
rules of this element. |
static EqualityMethod |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static EqualityMethod[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final EqualityMethod REFERENCE
==
operator.
public static final EqualityMethod VALUE
equals
method.
Method Detail |
---|
public static EqualityMethod[] values()
for (EqualityMethod c : EqualityMethod.values()) System.out.println(c);
public static EqualityMethod valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic abstract boolean deemsObjectsEqual(Object o1, Object o2)
o1
is equal to o2
according to the
rules of this element.
o1
- an object to be compared to another for equality.o2
- an object to be compared to another for equality.
o1
is equal to o2
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |