package com.google.common.base; import java.util.Collections; import java.util.Set; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes2.dex */ public final class Absent extends Optional { static final Absent INSTANCE = new Absent<>(); private static final long serialVersionUID = 0; @Override // com.google.common.base.Optional public final boolean equals(Object obj) { return obj == this; } @Override // com.google.common.base.Optional public final int hashCode() { return 2040732332; } @Override // com.google.common.base.Optional public final boolean isPresent() { return false; } @Override // com.google.common.base.Optional public final T orNull() { return null; } private Absent() { } @Override // com.google.common.base.Optional public final T get() { throw new IllegalStateException("Optional.get() cannot be called on an absent value"); } @Override // com.google.common.base.Optional public final T or(T t) { return (T) Preconditions.checkNotNull(t, "use Optional.orNull() instead of Optional.or(null)"); } @Override // com.google.common.base.Optional public final Optional or(Optional optional) { return (Optional) Preconditions.checkNotNull(optional); } @Override // com.google.common.base.Optional public final T or(Supplier supplier) { return (T) Preconditions.checkNotNull(supplier.get(), "use Optional.orNull() instead of a Supplier that returns null"); } @Override // com.google.common.base.Optional public final Set asSet() { return Collections.emptySet(); } @Override // com.google.common.base.Optional public final Optional transform(Function function) { Preconditions.checkNotNull(function); return Optional.absent(); } @Override // com.google.common.base.Optional public final String toString() { return "Optional.absent()"; } /* JADX INFO: Access modifiers changed from: package-private */ public static Optional withType() { return INSTANCE; } private Object readResolve() { return INSTANCE; } }