今奥全景相机
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.

322 lines
7.3 KiB

.class final Lcom/google/common/collect/ImmutableEnumSet;
.super Lcom/google/common/collect/ImmutableSet;
.source "ImmutableEnumSet.java"
# annotations
.annotation build Lcom/google/common/annotations/GwtCompatible;
emulated = true
serializable = true
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
Lcom/google/common/collect/ImmutableEnumSet$1;,
Lcom/google/common/collect/ImmutableEnumSet$EnumSerializedForm;
}
.end annotation
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Enum",
"<TE;>;>",
"Lcom/google/common/collect/ImmutableSet",
"<TE;>;"
}
.end annotation
# instance fields
.field private final transient delegate:Ljava/util/EnumSet;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/EnumSet",
"<TE;>;"
}
.end annotation
.end field
.field private transient hashCode:I
# direct methods
.method private constructor <init>(Ljava/util/EnumSet;)V
.locals 0
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/EnumSet",
"<TE;>;)V"
}
.end annotation
.prologue
.line 55
invoke-direct {p0}, Lcom/google/common/collect/ImmutableSet;-><init>()V
.line 56
iput-object p1, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
.line 57
return-void
.end method
.method synthetic constructor <init>(Ljava/util/EnumSet;Lcom/google/common/collect/ImmutableEnumSet$1;)V
.locals 0
.prologue
.line 33
invoke-direct {p0, p1}, Lcom/google/common/collect/ImmutableEnumSet;-><init>(Ljava/util/EnumSet;)V
return-void
.end method
.method static asImmutable(Ljava/util/EnumSet;)Lcom/google/common/collect/ImmutableSet;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"<E:",
"Ljava/lang/Enum",
"<TE;>;>(",
"Ljava/util/EnumSet",
"<TE;>;)",
"Lcom/google/common/collect/ImmutableSet",
"<TE;>;"
}
.end annotation
.prologue
.line 35
invoke-virtual {p0}, Ljava/util/EnumSet;->size()I
move-result v0
packed-switch v0, :pswitch_data_0
.line 41
new-instance v0, Lcom/google/common/collect/ImmutableEnumSet;
invoke-direct {v0, p0}, Lcom/google/common/collect/ImmutableEnumSet;-><init>(Ljava/util/EnumSet;)V
:goto_0
return-object v0
.line 37
:pswitch_0
invoke-static {}, Lcom/google/common/collect/ImmutableSet;->of()Lcom/google/common/collect/ImmutableSet;
move-result-object v0
goto :goto_0
.line 39
:pswitch_1
invoke-static {p0}, Lcom/google/common/collect/Iterables;->getOnlyElement(Ljava/lang/Iterable;)Ljava/lang/Object;
move-result-object v0
invoke-static {v0}, Lcom/google/common/collect/ImmutableSet;->of(Ljava/lang/Object;)Lcom/google/common/collect/ImmutableSet;
move-result-object v0
goto :goto_0
.line 35
nop
:pswitch_data_0
.packed-switch 0x0
:pswitch_0
:pswitch_1
.end packed-switch
.end method
# virtual methods
.method public contains(Ljava/lang/Object;)Z
.locals 1
.prologue
.line 73
iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-virtual {v0, p1}, Ljava/util/EnumSet;->contains(Ljava/lang/Object;)Z
move-result v0
return v0
.end method
.method public containsAll(Ljava/util/Collection;)Z
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/Collection",
"<*>;)Z"
}
.end annotation
.prologue
.line 77
iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-virtual {v0, p1}, Ljava/util/EnumSet;->containsAll(Ljava/util/Collection;)Z
move-result v0
return v0
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 1
.prologue
.line 85
if-eq p1, p0, :cond_0
iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-virtual {v0, p1}, Ljava/util/EnumSet;->equals(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_1
:cond_0
const/4 v0, 0x1
:goto_0
return v0
:cond_1
const/4 v0, 0x0
goto :goto_0
.end method
.method public hashCode()I
.locals 1
.prologue
.line 91
iget v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->hashCode:I
.line 92
if-nez v0, :cond_0
iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-virtual {v0}, Ljava/util/EnumSet;->hashCode()I
move-result v0
iput v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->hashCode:I
:cond_0
return v0
.end method
.method public isEmpty()Z
.locals 1
.prologue
.line 81
iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-virtual {v0}, Ljava/util/EnumSet;->isEmpty()Z
move-result v0
return v0
.end method
.method isPartialView()Z
.locals 1
.prologue
.line 60
const/4 v0, 0x0
return v0
.end method
.method public iterator()Lcom/google/common/collect/UnmodifiableIterator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"()",
"Lcom/google/common/collect/UnmodifiableIterator",
"<TE;>;"
}
.end annotation
.prologue
.line 64
iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-virtual {v0}, Ljava/util/EnumSet;->iterator()Ljava/util/Iterator;
move-result-object v0
invoke-static {v0}, Lcom/google/common/collect/Iterators;->unmodifiableIterator(Ljava/util/Iterator;)Lcom/google/common/collect/UnmodifiableIterator;
move-result-object v0
return-object v0
.end method
.method public bridge synthetic iterator()Ljava/util/Iterator;
.locals 1
.prologue
.line 31
invoke-virtual {p0}, Lcom/google/common/collect/ImmutableEnumSet;->iterator()Lcom/google/common/collect/UnmodifiableIterator;
move-result-object v0
return-object v0
.end method
.method public size()I
.locals 1
.prologue
.line 69
iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-virtual {v0}, Ljava/util/EnumSet;->size()I
move-result v0
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 1
.prologue
.line 96
iget-object v0, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-virtual {v0}, Ljava/util/EnumSet;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method writeReplace()Ljava/lang/Object;
.locals 2
.prologue
.line 101
new-instance v0, Lcom/google/common/collect/ImmutableEnumSet$EnumSerializedForm;
iget-object v1, p0, Lcom/google/common/collect/ImmutableEnumSet;->delegate:Ljava/util/EnumSet;
invoke-direct {v0, v1}, Lcom/google/common/collect/ImmutableEnumSet$EnumSerializedForm;-><init>(Ljava/util/EnumSet;)V
return-object v0
.end method