public Integer getIfIndex() {
   final SnmpValue value = getValue(IF_INDEX);
   if (value != null) {
     return value.toInt();
   } else {
     // ifIndex is the instance id as well
     final SnmpInstId inst = getInstance();
     if (inst != null && inst.length() == 1) {
       return inst.toInt();
     }
   }
   return null;
 }
 private Integer getIfAdminStatus() {
   final SnmpValue value = getValue(IF_ADMIN_STATUS);
   return value == null ? null : value.toInt();
 }
 private Integer getIfOperStatus() {
   final SnmpValue value = getValue(IF_OPER_STATUS);
   return value == null ? null : value.toInt();
 }
 private Integer getIfType() {
   final SnmpValue value = getValue(IF_TYPE);
   return value == null ? null : value.toInt();
 }