private TenancyType indexToTenancyType(int i) { try { TenancyType aType = (TenancyType)i; return(aType); } catch (Exception e) { // Handle invalid index value } return(TenancyType.UNKNOWN); }
public int getTenancyTypeIndex(TenancyType aType) { return((int)aType); }
public void setTenancyType(int i) { this.tenancy = this.indexToTenancyType(i); }
// Tenancy type public void setTenancyType(TenancyType aType) { this.tenancy = aType; }