You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
244 lines
6.0 KiB
244 lines
6.0 KiB
.class public abstract Lcom/google/common/base/Optional; |
|
.super Ljava/lang/Object; |
|
.source "Optional.java" |
|
|
|
# interfaces |
|
.implements Ljava/io/Serializable; |
|
|
|
|
|
# annotations |
|
.annotation build Lcom/google/common/annotations/GwtCompatible; |
|
serializable = true |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">", |
|
"Ljava/lang/Object;", |
|
"Ljava/io/Serializable;" |
|
} |
|
.end annotation |
|
|
|
|
|
# static fields |
|
.field private static final serialVersionUID:J |
|
|
|
|
|
# direct methods |
|
.method constructor <init>()V |
|
.locals 0 |
|
|
|
.prologue |
|
.line 98 |
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V |
|
|
|
return-void |
|
.end method |
|
|
|
.method public static absent()Lcom/google/common/base/Optional; |
|
.locals 1 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">()", |
|
"Lcom/google/common/base/Optional", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 78 |
|
invoke-static {}, Lcom/google/common/base/Absent;->withType()Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static fromNullable(Ljava/lang/Object;)Lcom/google/common/base/Optional; |
|
.locals 1 |
|
.param p0 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(TT;)", |
|
"Lcom/google/common/base/Optional", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 93 |
|
if-nez p0, :cond_0 |
|
|
|
invoke-static {}, Lcom/google/common/base/Optional;->absent()Lcom/google/common/base/Optional; |
|
|
|
move-result-object v0 |
|
|
|
:goto_0 |
|
return-object v0 |
|
|
|
:cond_0 |
|
new-instance v0, Lcom/google/common/base/Present; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/base/Present;-><init>(Ljava/lang/Object;)V |
|
|
|
goto :goto_0 |
|
.end method |
|
|
|
.method public static of(Ljava/lang/Object;)Lcom/google/common/base/Optional; |
|
.locals 2 |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(TT;)", |
|
"Lcom/google/common/base/Optional", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 85 |
|
new-instance v0, Lcom/google/common/base/Present; |
|
|
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
move-result-object v1 |
|
|
|
invoke-direct {v0, v1}, Lcom/google/common/base/Present;-><init>(Ljava/lang/Object;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
.method public static presentInstances(Ljava/lang/Iterable;)Ljava/lang/Iterable; |
|
.locals 1 |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<T:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Ljava/lang/Iterable", |
|
"<+", |
|
"Lcom/google/common/base/Optional", |
|
"<+TT;>;>;)", |
|
"Ljava/lang/Iterable", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
|
|
.prologue |
|
.line 218 |
|
invoke-static {p0}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; |
|
|
|
.line 219 |
|
new-instance v0, Lcom/google/common/base/Optional$1; |
|
|
|
invoke-direct {v0, p0}, Lcom/google/common/base/Optional$1;-><init>(Ljava/lang/Iterable;)V |
|
|
|
return-object v0 |
|
.end method |
|
|
|
|
|
# virtual methods |
|
.method public abstract asSet()Ljava/util/Set; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()", |
|
"Ljava/util/Set", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method public abstract equals(Ljava/lang/Object;)Z |
|
.param p1 # Ljava/lang/Object; |
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end param |
|
.end method |
|
|
|
.method public abstract get()Ljava/lang/Object; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()TT;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method public abstract hashCode()I |
|
.end method |
|
|
|
.method public abstract isPresent()Z |
|
.end method |
|
|
|
.method public abstract or(Lcom/google/common/base/Optional;)Lcom/google/common/base/Optional; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/base/Optional", |
|
"<+TT;>;)", |
|
"Lcom/google/common/base/Optional", |
|
"<TT;>;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method public abstract or(Lcom/google/common/base/Supplier;)Ljava/lang/Object; |
|
.annotation build Lcom/google/common/annotations/Beta; |
|
.end annotation |
|
|
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(", |
|
"Lcom/google/common/base/Supplier", |
|
"<+TT;>;)TT;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method public abstract or(Ljava/lang/Object;)Ljava/lang/Object; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"(TT;)TT;" |
|
} |
|
.end annotation |
|
.end method |
|
|
|
.method public abstract orNull()Ljava/lang/Object; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"()TT;" |
|
} |
|
.end annotation |
|
|
|
.annotation runtime Ljavax/annotation/Nullable; |
|
.end annotation |
|
.end method |
|
|
|
.method public abstract toString()Ljava/lang/String; |
|
.end method |
|
|
|
.method public abstract transform(Lcom/google/common/base/Function;)Lcom/google/common/base/Optional; |
|
.annotation system Ldalvik/annotation/Signature; |
|
value = { |
|
"<V:", |
|
"Ljava/lang/Object;", |
|
">(", |
|
"Lcom/google/common/base/Function", |
|
"<-TT;TV;>;)", |
|
"Lcom/google/common/base/Optional", |
|
"<TV;>;" |
|
} |
|
.end annotation |
|
.end method
|
|
|