예제 #1
0
  public boolean equals(Object obj) {
    if (obj instanceof SnmpInt32) {
      SnmpInt32 int32 = (SnmpInt32) obj;

      return (typeId() == int32.typeId() && getValue() == int32.getValue());
    }
    return false;
  }
예제 #2
0
 public static Integer toInteger(SnmpInt32 val) {
   return (val == null ? null : new Integer(val.getValue()));
 }