public static enum ComparableUsing.EqualityMode extends Enum<ComparableUsing.EqualityMode>
== and != operators.| Enum Constant and Description |
|---|
CompareTo
Use the
#compareTo() method to implement `==` and `!=` |
Equals
Use the
equals() method to implement `==` and `!=` (default) |
Identity
Use
identity comparison for `==` and `!=`, note this is the same as Java's normal == behavior } |
| Modifier and Type | Method and Description |
|---|---|
static ComparableUsing.EqualityMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparableUsing.EqualityMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparableUsing.EqualityMode CompareTo
#compareTo() method to implement `==` and `!=`public static final ComparableUsing.EqualityMode Equals
equals() method to implement `==` and `!=` (default)public static final ComparableUsing.EqualityMode Identity
identity comparison for `==` and `!=`, note this is the same as Java's normal == behavior }public static ComparableUsing.EqualityMode[] values()
for (ComparableUsing.EqualityMode c : ComparableUsing.EqualityMode.values()) System.out.println(c);
public static ComparableUsing.EqualityMode 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 nullCopyright © 2020. All rights reserved.