pf.java 1.63 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.collect.Ordering;
import java.io.Serializable;
import javax.annotation.Nullable;

@GwtCompatible(serializable=true)
public final class pf<T>
  extends Ordering<T>
  implements Serializable
{
  private static final long serialVersionUID = 0L;
  final Ordering<? super T> a;
  
  public pf(Ordering<? super T> paramOrdering)
  {
    this.a = paramOrdering;
  }
  
  public final int compare(@Nullable T paramT1, @Nullable T paramT2)
  {
    if (paramT1 == paramT2) {
      return 0;
    }
    if (paramT1 == null) {
      return 1;
    }
    if (paramT2 == null) {
      return -1;
    }
    return this.a.compare(paramT1, paramT2);
  }
  
  public final boolean equals(@Nullable Object paramObject)
  {
    if (paramObject == this) {
      return true;
    }
    if ((paramObject instanceof pf))
    {
      paramObject = (pf)paramObject;
      return this.a.equals(((pf)paramObject).a);
    }
    return false;
  }
  
  public final int hashCode()
  {
    return this.a.hashCode() ^ 0xC9177248;
  }
  
  public final <S extends T> Ordering<S> nullsFirst()
  {
    return this.a.nullsFirst();
  }
  
  public final <S extends T> Ordering<S> nullsLast()
  {
    return this;
  }
  
  public final <S extends T> Ordering<S> reverse()
  {
    return this.a.reverse().nullsFirst();
  }
  
  public final String toString()
  {
    String str = String.valueOf(String.valueOf(this.a));
    return str.length() + 12 + str + ".nullsLast()";
  }
}


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