Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.hammurapi.reasoning.tutorial.objectmodel
Class Relative

    java.lang.Object
      com.hammurapi.reasoning.tutorial.objectmodel.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`

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD