qw$a.java 1.31 KB
import com.google.common.base.Preconditions;
import com.google.common.hash.HashCode;
import java.security.MessageDigest;
import java.util.Arrays;

final class qw$a
  extends qq
{
  private final MessageDigest a;
  private final int b;
  private boolean c;
  
  private qw$a(MessageDigest paramMessageDigest, int paramInt)
  {
    this.a = paramMessageDigest;
    this.b = paramInt;
  }
  
  private void a()
  {
    if (!this.c) {}
    for (boolean bool = true;; bool = false)
    {
      Preconditions.checkState(bool, "Cannot re-use a Hasher after calling hash() on it");
      return;
    }
  }
  
  protected final void a(byte paramByte)
  {
    a();
    this.a.update(paramByte);
  }
  
  protected final void a(byte[] paramArrayOfByte)
  {
    a();
    this.a.update(paramArrayOfByte);
  }
  
  protected final void a(byte[] paramArrayOfByte, int paramInt1, int paramInt2)
  {
    a();
    this.a.update(paramArrayOfByte, paramInt1, paramInt2);
  }
  
  public final HashCode hash()
  {
    a();
    this.c = true;
    if (this.b == this.a.getDigestLength()) {
      return HashCode.a(this.a.digest());
    }
    return HashCode.a(Arrays.copyOf(this.a.digest(), this.b));
  }
}


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