qr.java 5.61 KB
import com.google.common.base.Preconditions;
import com.google.common.hash.AbstractStreamingHashFunction;
import com.google.common.hash.Funnel;
import com.google.common.hash.HashCode;
import com.google.common.hash.HashFunction;
import com.google.common.hash.Hasher;
import java.nio.charset.Charset;

public abstract class qr
  extends AbstractStreamingHashFunction
{
  protected final HashFunction[] a;
  
  protected qr(HashFunction... paramVarArgs)
  {
    int j = paramVarArgs.length;
    int i = 0;
    while (i < j)
    {
      Preconditions.checkNotNull(paramVarArgs[i]);
      i += 1;
    }
    this.a = paramVarArgs;
  }
  
  protected abstract HashCode a(Hasher[] paramArrayOfHasher);
  
  public Hasher newHasher()
  {
    final Hasher[] arrayOfHasher = new Hasher[this.a.length];
    int i = 0;
    while (i < arrayOfHasher.length)
    {
      arrayOfHasher[i] = this.a[i].newHasher();
      i += 1;
    }
    new Hasher()
    {
      public final HashCode hash()
      {
        return qr.this.a(arrayOfHasher);
      }
      
      public final Hasher putBoolean(boolean paramAnonymousBoolean)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putBoolean(paramAnonymousBoolean);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putByte(byte paramAnonymousByte)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putByte(paramAnonymousByte);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putBytes(byte[] paramAnonymousArrayOfByte)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putBytes(paramAnonymousArrayOfByte);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putBytes(byte[] paramAnonymousArrayOfByte, int paramAnonymousInt1, int paramAnonymousInt2)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putBytes(paramAnonymousArrayOfByte, paramAnonymousInt1, paramAnonymousInt2);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putChar(char paramAnonymousChar)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putChar(paramAnonymousChar);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putDouble(double paramAnonymousDouble)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putDouble(paramAnonymousDouble);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putFloat(float paramAnonymousFloat)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putFloat(paramAnonymousFloat);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putInt(int paramAnonymousInt)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putInt(paramAnonymousInt);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putLong(long paramAnonymousLong)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putLong(paramAnonymousLong);
          i += 1;
        }
        return this;
      }
      
      public final <T> Hasher putObject(T paramAnonymousT, Funnel<? super T> paramAnonymousFunnel)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putObject(paramAnonymousT, paramAnonymousFunnel);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putShort(short paramAnonymousShort)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putShort(paramAnonymousShort);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putString(CharSequence paramAnonymousCharSequence, Charset paramAnonymousCharset)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putString(paramAnonymousCharSequence, paramAnonymousCharset);
          i += 1;
        }
        return this;
      }
      
      public final Hasher putUnencodedChars(CharSequence paramAnonymousCharSequence)
      {
        Hasher[] arrayOfHasher = arrayOfHasher;
        int j = arrayOfHasher.length;
        int i = 0;
        while (i < j)
        {
          arrayOfHasher[i].putUnencodedChars(paramAnonymousCharSequence);
          i += 1;
        }
        return this;
      }
    };
  }
}


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