public static enum IntroduceLocalExtensionRefactoring.Equality extends Enum<IntroduceLocalExtensionRefactoring.Equality>
Enum.EnumDesc<E extends Enum<E>>
Enum Constant and Description |
---|
DELEGATE
Delegate to the equals and hashcode methods to the original class.
|
GENERATE
Generate new hashcode and equals methods using the editors
codegenerator.
|
SEPARATE
Separate the equals method into two.
|
Modifier and Type | Method and Description |
---|---|
static IntroduceLocalExtensionRefactoring.Equality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntroduceLocalExtensionRefactoring.Equality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IntroduceLocalExtensionRefactoring.Equality DELEGATE
boolean equals(Object o) {
Object target = o;
if(o instanceof THIS) {
target = ((THIS)o).delegate;
}
return this.delegate.equals(target);
}
int hashCode() {
return this.delegate.hashCode();
}
public static final IntroduceLocalExtensionRefactoring.Equality GENERATE
delegate
will be supplied to the equals and
hashcode generator.public static final IntroduceLocalExtensionRefactoring.Equality SEPARATE
boolean equals(Object o) {
return this.delegate.equals(o);
}
boolean equalsSOURCE(THIS o) {
return this.delegate.equals(o.delegate);
}
int hashCode() {
return this.delegate.hashCode();
}
public static IntroduceLocalExtensionRefactoring.Equality[] values()
public static IntroduceLocalExtensionRefactoring.Equality 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 null