@Override public boolean equals(Object o){
  if (this == o) {
    return true;
  }
  if (!(o instanceof LongBitSet)) {
    return false;
  }
  LongBitSet other=(LongBitSet)o;
  if (numBits != other.numBits) {
    return false;
  }
  return Arrays.equals(bits,other.bits);
}

@ Override public boolean equals ( Object o ) { if ( this == o ) { return true ; } if ( ! ( o instanceof LongBitSet ) ) { return false ; } LongBitSet other = ( LongBitSet ) o ; if ( numBits != other . numBits ) { return false ; } return Arrays . equals ( bits , other . bits ) ; }
returns true if both sets have the same bits set
