mg.java 1.91 KB
import com.google.common.annotations.GwtCompatible;
import com.google.common.base.Function;
import com.google.common.base.Optional;
import com.google.common.base.Preconditions;
import com.google.common.base.Supplier;
import java.util.Collections;
import java.util.Set;
import javax.annotation.Nullable;

@GwtCompatible
public final class mg<T>
  extends Optional<T>
{
  static final mg<Object> a = new mg();
  private static final long serialVersionUID = 0L;
  
  public static <T> Optional<T> a()
  {
    return a;
  }
  
  private Object readResolve()
  {
    return a;
  }
  
  public final Set<T> asSet()
  {
    return Collections.emptySet();
  }
  
  public final boolean equals(@Nullable Object paramObject)
  {
    return paramObject == this;
  }
  
  public final T get()
  {
    throw new IllegalStateException("Optional.get() cannot be called on an absent value");
  }
  
  public final int hashCode()
  {
    return 1502476572;
  }
  
  public final boolean isPresent()
  {
    return false;
  }
  
  public final Optional<T> or(Optional<? extends T> paramOptional)
  {
    return (Optional)Preconditions.checkNotNull(paramOptional);
  }
  
  public final T or(Supplier<? extends T> paramSupplier)
  {
    return (T)Preconditions.checkNotNull(paramSupplier.get(), "use Optional.orNull() instead of a Supplier that returns null");
  }
  
  public final T or(T paramT)
  {
    return (T)Preconditions.checkNotNull(paramT, "use Optional.orNull() instead of Optional.or(null)");
  }
  
  @Nullable
  public final T orNull()
  {
    return null;
  }
  
  public final String toString()
  {
    return "Optional.absent()";
  }
  
  public final <V> Optional<V> transform(Function<? super T, V> paramFunction)
  {
    Preconditions.checkNotNull(paramFunction);
    return Optional.absent();
  }
}


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