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 Person

    java.lang.Object
      com.hammurapi.reasoning.tutorial.objectmodel.Person

All Implemented Interfaces:
  Comparable<Person>

    public class Person

extends Object
implements Comparable<Person>

Constructor Summary
`Person(String name, int age, boolean isMale)`

Method Summary
`int` | `compareTo(Person o)`
`boolean` | `equals(Object obj)`
`int` | `getAge()`
`String` | `getName()`
`int` | `hashCode()`
`boolean` | `isMale()`
`String` | `toString()`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

Constructor Detail

### Person

    public Person(String name,
                  int age,
                  boolean isMale)

Method Detail

### toString

    public String toString()

  Overrides:
    `toString` in class `Object`

### hashCode

    public int hashCode()

  Overrides:
    `hashCode` in class `Object`

### equals

    public boolean equals(Object obj)

  Overrides:
    `equals` in class `Object`

### isMale

    public boolean isMale()

### getAge

    public int getAge()

### getName

    public String getName()

### compareTo

    public int compareTo(Person o)

  Specified by:
    `compareTo` in interface `Comparable<Person>`

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