qt.java 2.19 KB
import com.google.common.base.Preconditions;
import com.google.common.hash.BloomFilter.b;
import com.google.common.hash.Funnel;
import com.google.common.hash.HashCode;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hashing;
import com.google.common.math.LongMath;
import com.google.common.primitives.Ints;
import com.google.common.primitives.Longs;
import java.math.RoundingMode;
import java.util.Arrays;

public enum qt
  implements BloomFilter.b
{
  private qt() {}
  
  public static final class a
  {
    public final long[] a;
    public long b;
    
    public a(long paramLong)
    {
      this(new long[Ints.checkedCast(LongMath.divide(paramLong, 64L, RoundingMode.CEILING))]);
    }
    
    public 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.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */