Class SimpleViolationKey
- java.lang.Object
-
- org.eclipse.viatra.addon.validation.core.violationkey.SimpleViolationKey
-
- All Implemented Interfaces:
ViolationKey
public class SimpleViolationKey extends java.lang.Object implements ViolationKey
A simple violation key serves as an object to uniquely identify an Object.
-
-
Constructor Summary
Constructors Constructor Description SimpleViolationKey(java.lang.Object keyObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.Object
getKeyObject()
int
hashCode()
void
setKeyObject(java.lang.Object keyObject)
-
-
-
Method Detail
-
getKeyObject
public java.lang.Object getKeyObject()
-
setKeyObject
public void setKeyObject(java.lang.Object keyObject)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-