The currently supported MethodOverride variants are
LookupOverride and ReplaceOverride.
MethodOverride
| Modifier and Type | Field and Description |
|---|---|
| private final Set |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | equals(Object
the reference object with which to compare. other)Overrides java. Indicates whether some other object is "equal to" this one. |
| public MethodOverride | Returns: the method override, ornull if nonemethod to check for overrides for method)Return the override for the given method, if any. |
| public Set | Returns: a Set of MethodOverride objectsReturn all method overrides contained by this object. |
| public int | |
| public boolean |
| overrides | back to summary |
|---|---|
| private final Set<MethodOverride> overrides | |
| MethodOverrides | back to summary |
|---|---|
| public MethodOverrides() Create new MethodOverrides. | |
| MethodOverrides | back to summary |
|---|---|
| public MethodOverrides(MethodOverrides other) Deep copy constructor. | |
| addOverride | back to summary |
|---|---|
| public void addOverride(MethodOverride override) Add the given method override. | |
| addOverrides | back to summary |
|---|---|
| public void addOverrides(MethodOverrides other) Copy all given method overrides into this object. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object other) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getOverride | back to summary |
|---|---|
| public MethodOverride getOverride(Method method) Return the override for the given method, if any.
| |
| getOverrides | back to summary |
|---|---|
| public Set Return all method overrides contained by this object.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Return whether the set of method overrides is empty. | |