static long makeId(SnmpOid oid){
  long id=0;
  long[] arcs=oid.longValue(false);
  id|=arcs[0] << 56;
  id|=arcs[1] << 48;
  id|=arcs[2] << 40;
  id|=arcs[3] << 32;
  id|=arcs[4] << 24;
  id|=arcs[5] << 16;
  id|=arcs[6] << 8;
  id|=arcs[7];
  return id;
}

static long makeId ( SnmpOid oid ) { long id = 0 ; long [ ] arcs = oid . longValue ( false ) ; id |= arcs [ 0 ] << 56 ; id |= arcs [ 1 ] << 48 ; id |= arcs [ 2 ] << 40 ; id |= arcs [ 3 ] << 32 ; id |= arcs [ 4 ] << 24 ; id |= arcs [ 5 ] << 16 ; id |= arcs [ 6 ] << 8 ; id |= arcs [ 7 ] ; return id ; }
translate an oid to a thread id . arc follow the long big - endian order .
