com.hammurapi.eventbus.tests.familyties.model
Class Relative

Show UML class diagram
java.lang.Object
  extended by com.hammurapi.eventbus.tests.familyties.model.Relative
All Implemented Interfaces:
Comparable<Relative>
Direct Known Subclasses:
Aunt, CloseRelative, Cousin, Nephew, Niece, Uncle

public class Relative
extends Object
implements Comparable<Relative>


Constructor Summary
Relative(Person subject, Person object)
           
 
Method Summary
 int compareTo(Relative o)
           
 boolean equals(Object obj)
           
 Person getObject()
           
 Person getSubject()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Relative

public Relative(Person subject,
                Person object)
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getSubject

public Person getSubject()

getObject

public Person getObject()

compareTo

public int compareTo(Relative o)
Specified by:
compareTo in interface Comparable<Relative>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object