mg.java
1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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
*/