|
Lima-Loa | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.limaloa.MethodMapping
public final class MethodMapping
Encapsulates a Method Mapping. Designed as an immutable value object.
Constructor Summary | |
---|---|
MethodMapping(Method source,
Method target)
Creates a new method mapping. |
|
MethodMapping(Method source,
Method target,
java.util.List<ExceptionMapping> exceptionMappings)
Creates a new method mapping. |
|
MethodMapping(java.lang.String source,
java.lang.String target)
Creates a new method mapping, selecting methods by name alone. |
|
MethodMapping(java.lang.String source,
java.lang.String target,
java.util.List<ExceptionMapping> exceptionMappings)
Creates a new method mapping, selecting methods by name alone. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object object)
Value equality. |
java.util.List<ExceptionMapping> |
getExceptionMappings()
Get the exception mappings (if any). |
Method |
getSource()
Get the source method. |
Method |
getTarget()
Get the target method. |
int |
hashCode()
Hash code, consistent with value equality. |
java.lang.String |
toString()
Converts an instance to a string. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public MethodMapping(Method source, Method target, java.util.List<ExceptionMapping> exceptionMappings)
source
- The source methodtarget
- The target methodexceptionMappings
- The exception mappings (if any)public MethodMapping(Method source, Method target)
source
- The source methodtarget
- The target methodpublic MethodMapping(java.lang.String source, java.lang.String target, java.util.List<ExceptionMapping> exceptionMappings)
source
- The source method nametarget
- The target method nameexceptionMappings
- The exception mappings (if any)public MethodMapping(java.lang.String source, java.lang.String target)
source
- The source method nametarget
- The target method nameMethod Detail |
---|
public Method getSource()
public Method getTarget()
public java.util.List<ExceptionMapping> getExceptionMappings()
null
.public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
object
- The object to compare
true
if of equal valuepublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
Lima-Loa | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |