.class Lcom/google/common/collect/MapConstraints$ConstrainedMap; .super Lcom/google/common/collect/ForwardingMap; .source "MapConstraints.java" # annotations .annotation system Ldalvik/annotation/EnclosingClass; value = Lcom/google/common/collect/MapConstraints; .end annotation .annotation system Ldalvik/annotation/InnerClass; accessFlags = 0x8 name = "ConstrainedMap" .end annotation .annotation system Ldalvik/annotation/Signature; value = { "", "Lcom/google/common/collect/ForwardingMap", ";" } .end annotation # instance fields .field final constraint:Lcom/google/common/collect/MapConstraint; .annotation system Ldalvik/annotation/Signature; value = { "Lcom/google/common/collect/MapConstraint", "<-TK;-TV;>;" } .end annotation .end field .field private final delegate:Ljava/util/Map; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Map", ";" } .end annotation .end field .field private transient entrySet:Ljava/util/Set; .annotation system Ldalvik/annotation/Signature; value = { "Ljava/util/Set", "<", "Ljava/util/Map$Entry", ";>;" } .end annotation .end field # direct methods .method constructor (Ljava/util/Map;Lcom/google/common/collect/MapConstraint;)V .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map", ";", "Lcom/google/common/collect/MapConstraint", "<-TK;-TV;>;)V" } .end annotation .prologue .line 297 invoke-direct {p0}, Lcom/google/common/collect/ForwardingMap;->()V .line 298 invoke-static {p1}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Ljava/util/Map; iput-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->delegate:Ljava/util/Map; .line 299 invoke-static {p2}, Lcom/google/common/base/Preconditions;->checkNotNull(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 check-cast v0, Lcom/google/common/collect/MapConstraint; iput-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->constraint:Lcom/google/common/collect/MapConstraint; .line 300 return-void .end method # virtual methods .method protected bridge synthetic delegate()Ljava/lang/Object; .locals 1 .prologue .line 291 invoke-virtual {p0}, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->delegate()Ljava/util/Map; move-result-object v0 return-object v0 .end method .method protected delegate()Ljava/util/Map; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Map", ";" } .end annotation .prologue .line 302 iget-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->delegate:Ljava/util/Map; return-object v0 .end method .method public entrySet()Ljava/util/Set; .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "()", "Ljava/util/Set", "<", "Ljava/util/Map$Entry", ";>;" } .end annotation .prologue .line 305 iget-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->entrySet:Ljava/util/Set; .line 306 if-nez v0, :cond_0 .line 307 iget-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->delegate:Ljava/util/Map; invoke-interface {v0}, Ljava/util/Map;->entrySet()Ljava/util/Set; move-result-object v0 iget-object v1, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->constraint:Lcom/google/common/collect/MapConstraint; invoke-static {v0, v1}, Lcom/google/common/collect/MapConstraints;->access$000(Ljava/util/Set;Lcom/google/common/collect/MapConstraint;)Ljava/util/Set; move-result-object v0 iput-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->entrySet:Ljava/util/Set; .line 310 :cond_0 return-object v0 .end method .method public put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; .locals 1 .annotation system Ldalvik/annotation/Signature; value = { "(TK;TV;)TV;" } .end annotation .prologue .line 313 iget-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->constraint:Lcom/google/common/collect/MapConstraint; invoke-interface {v0, p1, p2}, Lcom/google/common/collect/MapConstraint;->checkKeyValue(Ljava/lang/Object;Ljava/lang/Object;)V .line 314 iget-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->delegate:Ljava/util/Map; invoke-interface {v0, p1, p2}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; move-result-object v0 return-object v0 .end method .method public putAll(Ljava/util/Map;)V .locals 2 .annotation system Ldalvik/annotation/Signature; value = { "(", "Ljava/util/Map", "<+TK;+TV;>;)V" } .end annotation .prologue .line 317 iget-object v0, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->delegate:Ljava/util/Map; iget-object v1, p0, Lcom/google/common/collect/MapConstraints$ConstrainedMap;->constraint:Lcom/google/common/collect/MapConstraint; invoke-static {p1, v1}, Lcom/google/common/collect/MapConstraints;->access$100(Ljava/util/Map;Lcom/google/common/collect/MapConstraint;)Ljava/util/Map; move-result-object v1 invoke-interface {v0, v1}, Ljava/util/Map;->putAll(Ljava/util/Map;)V .line 318 return-void .end method