qt$a.java 1.74 KB
import com.google.common.base.Preconditions;
import com.google.common.math.LongMath;
import com.google.common.primitives.Ints;
import java.math.RoundingMode;
import java.util.Arrays;

public final class qt$a
{
  public final long[] a;
  public long b;
  
  public qt$a(long paramLong)
  {
    this(new long[Ints.checkedCast(LongMath.divide(paramLong, 64L, RoundingMode.CEILING))]);
  }
  
  public qt$a(long[] paramArrayOfLong)
  {
    if (paramArrayOfLong.length > 0) {}
    long l;
    for (boolean bool = true;; bool = false)
    {
      Preconditions.checkArgument(bool, "data length is zero!");
      this.a = paramArrayOfLong;
      l = 0L;
      int j = paramArrayOfLong.length;
      while (i < j)
      {
        l += Long.bitCount(paramArrayOfLong[i]);
        i += 1;
      }
    }
    this.b = l;
  }
  
  public final long a()
  {
    return this.a.length * 64L;
  }
  
  final boolean a(long paramLong)
  {
    if (!b(paramLong))
    {
      long[] arrayOfLong = this.a;
      int i = (int)(paramLong >>> 6);
      arrayOfLong[i] |= 1L << (int)paramLong;
      this.b += 1L;
      return true;
    }
    return false;
  }
  
  public final a b()
  {
    return new a((long[])this.a.clone());
  }
  
  final boolean b(long paramLong)
  {
    return (this.a[((int)(paramLong >>> 6))] & 1L << (int)paramLong) != 0L;
  }
  
  public final boolean equals(Object paramObject)
  {
    if ((paramObject instanceof a))
    {
      paramObject = (a)paramObject;
      return Arrays.equals(this.a, ((a)paramObject).a);
    }
    return false;
  }
  
  public final int hashCode()
  {
    return Arrays.hashCode(this.a);
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/qt$a.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */