ps.java 2.34 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Preconditions;
import com.google.common.collect.Ordering;
import java.io.Serializable;
import java.util.Iterator;
import javax.annotation.Nullable;

@GwtCompatible(serializable=true)
public final class ps<T>
  extends Ordering<T>
  implements Serializable
{
  private static final long serialVersionUID = 0L;
  final Ordering<? super T> a;
  
  public ps(Ordering<? super T> paramOrdering)
  {
    this.a = ((Ordering)Preconditions.checkNotNull(paramOrdering));
  }
  
  public final int compare(T paramT1, T paramT2)
  {
    return this.a.compare(paramT2, paramT1);
  }
  
  public final boolean equals(@Nullable Object paramObject)
  {
    if (paramObject == this) {
      return true;
    }
    if ((paramObject instanceof ps))
    {
      paramObject = (ps)paramObject;
      return this.a.equals(((ps)paramObject).a);
    }
    return false;
  }
  
  public final int hashCode()
  {
    return -this.a.hashCode();
  }
  
  public final <E extends T> E max(Iterable<E> paramIterable)
  {
    return (E)this.a.min(paramIterable);
  }
  
  public final <E extends T> E max(E paramE1, E paramE2)
  {
    return (E)this.a.min(paramE1, paramE2);
  }
  
  public final <E extends T> E max(E paramE1, E paramE2, E paramE3, E... paramVarArgs)
  {
    return (E)this.a.min(paramE1, paramE2, paramE3, paramVarArgs);
  }
  
  public final <E extends T> E max(Iterator<E> paramIterator)
  {
    return (E)this.a.min(paramIterator);
  }
  
  public final <E extends T> E min(Iterable<E> paramIterable)
  {
    return (E)this.a.max(paramIterable);
  }
  
  public final <E extends T> E min(E paramE1, E paramE2)
  {
    return (E)this.a.max(paramE1, paramE2);
  }
  
  public final <E extends T> E min(E paramE1, E paramE2, E paramE3, E... paramVarArgs)
  {
    return (E)this.a.max(paramE1, paramE2, paramE3, paramVarArgs);
  }
  
  public final <E extends T> E min(Iterator<E> paramIterator)
  {
    return (E)this.a.max(paramIterator);
  }
  
  public final <S extends T> Ordering<S> reverse()
  {
    return this.a;
  }
  
  public final String toString()
  {
    String str = String.valueOf(String.valueOf(this.a));
    return str.length() + 10 + str + ".reverse()";
  }
}


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