uk.ac.leeds.ccg.andyt.projects.moses.io
Class ISARDataHandler.AgeSexType

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.projects.moses.io.ISARDataHandler.AgeSexType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Enclosing class:
ISARDataHandler

public class ISARDataHandler.AgeSexType
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

A simple class for distinguishing ISARDataRecords into those with the same of Age, Sex and Type characteristics where Type can be either: RELTOHR = 1 for HRP RELTOHR = -9 for Communal Establishment Populations RELTOHR = other for general household person

See Also:
Serialized Form

Field Summary
protected  short _Age
          For storing _AGE
protected  boolean _Sex
          For storing the _SEX
protected  short _Type
          For storing Type
 
Constructor Summary
ISARDataHandler.AgeSexType()
           
ISARDataHandler.AgeSexType(ISARDataHandler.AgeSexType aAgeSexType)
           
ISARDataHandler.AgeSexType(ISARDataRecord aISARDataRecord)
           
ISARDataHandler.AgeSexType(short _Age, boolean _Sex, short _Type)
           
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object o)
           
 short get_Age()
           
 short get_Type()
           
 int hashCode()
           
 boolean is_Sex()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_Age

protected short _Age
For storing _AGE


_Sex

protected boolean _Sex
For storing the _SEX


_Type

protected short _Type
For storing Type

Constructor Detail

ISARDataHandler.AgeSexType

public ISARDataHandler.AgeSexType()

ISARDataHandler.AgeSexType

public ISARDataHandler.AgeSexType(short _Age,
                                  boolean _Sex,
                                  short _Type)

ISARDataHandler.AgeSexType

public ISARDataHandler.AgeSexType(ISARDataHandler.AgeSexType aAgeSexType)

ISARDataHandler.AgeSexType

public ISARDataHandler.AgeSexType(ISARDataRecord aISARDataRecord)
Method Detail

get_Age

public short get_Age()

is_Sex

public boolean is_Sex()

get_Type

public short get_Type()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable