.class public final Lokhttp3/CacheControl; .super Ljava/lang/Object; .source "CacheControl.kt" # annotations .annotation system Ldalvik/annotation/MemberClasses; value = { Lokhttp3/CacheControl$Builder;, Lokhttp3/CacheControl$Companion; } .end annotation .annotation runtime Lkotlin/Metadata; bv = { 0x1, 0x0, 0x3 } d1 = { "\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\n\n\u0002\u0010\u000e\n\u0002\u0008\u0011\u0018\u0000 !2\u00020\u0001:\u0002 !Bq\u0008\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\u0008\u001a\u00020\u0003\u0012\u0006\u0010\t\u001a\u00020\u0003\u0012\u0006\u0010\n\u001a\u00020\u0003\u0012\u0006\u0010\u000b\u001a\u00020\u0006\u0012\u0006\u0010\u000c\u001a\u00020\u0006\u0012\u0006\u0010\r\u001a\u00020\u0003\u0012\u0006\u0010\u000e\u001a\u00020\u0003\u0012\u0006\u0010\u000f\u001a\u00020\u0003\u0012\u0008\u0010\u0010\u001a\u0004\u0018\u00010\u0011\u00a2\u0006\u0002\u0010\u0012J\r\u0010\u000f\u001a\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008\u0015J\r\u0010\u0005\u001a\u00020\u0006H\u0007\u00a2\u0006\u0002\u0008\u0016J\r\u0010\u000b\u001a\u00020\u0006H\u0007\u00a2\u0006\u0002\u0008\u0017J\r\u0010\u000c\u001a\u00020\u0006H\u0007\u00a2\u0006\u0002\u0008\u0018J\r\u0010\n\u001a\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008\u0019J\r\u0010\u0002\u001a\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008\u001aJ\r\u0010\u0004\u001a\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008\u001bJ\r\u0010\u000e\u001a\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008\u001cJ\r\u0010\r\u001a\u00020\u0003H\u0007\u00a2\u0006\u0002\u0008\u001dJ\r\u0010\u0007\u001a\u00020\u0006H\u0007\u00a2\u0006\u0002\u0008\u001eJ\u0008\u0010\u001f\u001a\u00020\u0011H\u0016R\u0010\u0010\u0010\u001a\u0004\u0018\u00010\u0011X\u0082\u000e\u00a2\u0006\u0002\n\u0000R\u0013\u0010\u000f\u001a\u00020\u00038\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000f\u0010\u0013R\u0011\u0010\u0008\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0008\u0010\u0013R\u0011\u0010\t\u001a\u00020\u0003\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\t\u0010\u0013R\u0013\u0010\u0005\u001a\u00020\u00068\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0005\u0010\u0014R\u0013\u0010\u000b\u001a\u00020\u00068\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000b\u0010\u0014R\u0013\u0010\u000c\u001a\u00020\u00068\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000c\u0010\u0014R\u0013\u0010\n\u001a\u00020\u00038\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\n\u0010\u0013R\u0013\u0010\u0002\u001a\u00020\u00038\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0002\u0010\u0013R\u0013\u0010\u0004\u001a\u00020\u00038\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0004\u0010\u0013R\u0013\u0010\u000e\u001a\u00020\u00038\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u000e\u0010\u0013R\u0013\u0010\r\u001a\u00020\u00038\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\r\u0010\u0013R\u0013\u0010\u0007\u001a\u00020\u00068\u0007\u00a2\u0006\u0008\n\u0000\u001a\u0004\u0008\u0007\u0010\u0014\u00a8\u0006\"" } d2 = { "Lokhttp3/CacheControl;", "", "noCache", "", "noStore", "maxAgeSeconds", "", "sMaxAgeSeconds", "isPrivate", "isPublic", "mustRevalidate", "maxStaleSeconds", "minFreshSeconds", "onlyIfCached", "noTransform", "immutable", "headerValue", "", "(ZZIIZZZIIZZZLjava/lang/String;)V", "()Z", "()I", "-deprecated_immutable", "-deprecated_maxAgeSeconds", "-deprecated_maxStaleSeconds", "-deprecated_minFreshSeconds", "-deprecated_mustRevalidate", "-deprecated_noCache", "-deprecated_noStore", "-deprecated_noTransform", "-deprecated_onlyIfCached", "-deprecated_sMaxAgeSeconds", "toString", "Builder", "Companion", "okhttp" } k = 0x1 mv = { 0x1, 0x4, 0x0 } .end annotation # static fields .field public static final Companion:Lokhttp3/CacheControl$Companion; .field public static final FORCE_CACHE:Lokhttp3/CacheControl; .field public static final FORCE_NETWORK:Lokhttp3/CacheControl; # instance fields .field private headerValue:Ljava/lang/String; .field private final immutable:Z .field private final isPrivate:Z .field private final isPublic:Z .field private final maxAgeSeconds:I .field private final maxStaleSeconds:I .field private final minFreshSeconds:I .field private final mustRevalidate:Z .field private final noCache:Z .field private final noStore:Z .field private final noTransform:Z .field private final onlyIfCached:Z .field private final sMaxAgeSeconds:I # direct methods .method static constructor ()V .locals 3 new-instance v0, Lokhttp3/CacheControl$Companion; const/4 v1, 0x0 invoke-direct {v0, v1}, Lokhttp3/CacheControl$Companion;->(Lkotlin/jvm/internal/DefaultConstructorMarker;)V sput-object v0, Lokhttp3/CacheControl;->Companion:Lokhttp3/CacheControl$Companion; .line 264 new-instance v0, Lokhttp3/CacheControl$Builder; invoke-direct {v0}, Lokhttp3/CacheControl$Builder;->()V .line 265 invoke-virtual {v0}, Lokhttp3/CacheControl$Builder;->noCache()Lokhttp3/CacheControl$Builder; move-result-object v0 .line 266 invoke-virtual {v0}, Lokhttp3/CacheControl$Builder;->build()Lokhttp3/CacheControl; move-result-object v0 sput-object v0, Lokhttp3/CacheControl;->FORCE_NETWORK:Lokhttp3/CacheControl; .line 274 new-instance v0, Lokhttp3/CacheControl$Builder; invoke-direct {v0}, Lokhttp3/CacheControl$Builder;->()V .line 275 invoke-virtual {v0}, Lokhttp3/CacheControl$Builder;->onlyIfCached()Lokhttp3/CacheControl$Builder; move-result-object v0 const v1, 0x7fffffff .line 276 sget-object v2, Ljava/util/concurrent/TimeUnit;->SECONDS:Ljava/util/concurrent/TimeUnit; invoke-virtual {v0, v1, v2}, Lokhttp3/CacheControl$Builder;->maxStale(ILjava/util/concurrent/TimeUnit;)Lokhttp3/CacheControl$Builder; move-result-object v0 .line 277 invoke-virtual {v0}, Lokhttp3/CacheControl$Builder;->build()Lokhttp3/CacheControl; move-result-object v0 sput-object v0, Lokhttp3/CacheControl;->FORCE_CACHE:Lokhttp3/CacheControl; return-void .end method .method private constructor (ZZIIZZZIIZZZLjava/lang/String;)V .locals 0 .line 28 invoke-direct {p0}, Ljava/lang/Object;->()V iput-boolean p1, p0, Lokhttp3/CacheControl;->noCache:Z iput-boolean p2, p0, Lokhttp3/CacheControl;->noStore:Z iput p3, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I iput p4, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I iput-boolean p5, p0, Lokhttp3/CacheControl;->isPrivate:Z iput-boolean p6, p0, Lokhttp3/CacheControl;->isPublic:Z iput-boolean p7, p0, Lokhttp3/CacheControl;->mustRevalidate:Z iput p8, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I iput p9, p0, Lokhttp3/CacheControl;->minFreshSeconds:I iput-boolean p10, p0, Lokhttp3/CacheControl;->onlyIfCached:Z iput-boolean p11, p0, Lokhttp3/CacheControl;->noTransform:Z iput-boolean p12, p0, Lokhttp3/CacheControl;->immutable:Z iput-object p13, p0, Lokhttp3/CacheControl;->headerValue:Ljava/lang/String; return-void .end method .method public synthetic constructor (ZZIIZZZIIZZZLjava/lang/String;Lkotlin/jvm/internal/DefaultConstructorMarker;)V .locals 0 .line 28 invoke-direct/range {p0 .. p13}, Lokhttp3/CacheControl;->(ZZIIZZZIIZZZLjava/lang/String;)V return-void .end method .method public static final parse(Lokhttp3/Headers;)Lokhttp3/CacheControl; .locals 1 .annotation runtime Lkotlin/jvm/JvmStatic; .end annotation sget-object v0, Lokhttp3/CacheControl;->Companion:Lokhttp3/CacheControl$Companion; invoke-virtual {v0, p0}, Lokhttp3/CacheControl$Companion;->parse(Lokhttp3/Headers;)Lokhttp3/CacheControl; move-result-object p0 return-object p0 .end method # virtual methods .method public final -deprecated_immutable()Z .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "immutable" imports = {} .end subannotation .end annotation iget-boolean p0, p0, Lokhttp3/CacheControl;->immutable:Z return p0 .end method .method public final -deprecated_maxAgeSeconds()I .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "maxAgeSeconds" imports = {} .end subannotation .end annotation iget p0, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I return p0 .end method .method public final -deprecated_maxStaleSeconds()I .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "maxStaleSeconds" imports = {} .end subannotation .end annotation iget p0, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I return p0 .end method .method public final -deprecated_minFreshSeconds()I .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "minFreshSeconds" imports = {} .end subannotation .end annotation iget p0, p0, Lokhttp3/CacheControl;->minFreshSeconds:I return p0 .end method .method public final -deprecated_mustRevalidate()Z .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "mustRevalidate" imports = {} .end subannotation .end annotation iget-boolean p0, p0, Lokhttp3/CacheControl;->mustRevalidate:Z return p0 .end method .method public final -deprecated_noCache()Z .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "noCache" imports = {} .end subannotation .end annotation iget-boolean p0, p0, Lokhttp3/CacheControl;->noCache:Z return p0 .end method .method public final -deprecated_noStore()Z .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "noStore" imports = {} .end subannotation .end annotation iget-boolean p0, p0, Lokhttp3/CacheControl;->noStore:Z return p0 .end method .method public final -deprecated_noTransform()Z .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "noTransform" imports = {} .end subannotation .end annotation iget-boolean p0, p0, Lokhttp3/CacheControl;->noTransform:Z return p0 .end method .method public final -deprecated_onlyIfCached()Z .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "onlyIfCached" imports = {} .end subannotation .end annotation iget-boolean p0, p0, Lokhttp3/CacheControl;->onlyIfCached:Z return p0 .end method .method public final -deprecated_sMaxAgeSeconds()I .locals 0 .annotation runtime Lkotlin/Deprecated; level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel; message = "moved to val" replaceWith = .subannotation Lkotlin/ReplaceWith; expression = "sMaxAgeSeconds" imports = {} .end subannotation .end annotation iget p0, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I return p0 .end method .method public final immutable()Z .locals 0 iget-boolean p0, p0, Lokhttp3/CacheControl;->immutable:Z return p0 .end method .method public final isPrivate()Z .locals 0 iget-boolean p0, p0, Lokhttp3/CacheControl;->isPrivate:Z return p0 .end method .method public final isPublic()Z .locals 0 iget-boolean p0, p0, Lokhttp3/CacheControl;->isPublic:Z return p0 .end method .method public final maxAgeSeconds()I .locals 0 iget p0, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I return p0 .end method .method public final maxStaleSeconds()I .locals 0 iget p0, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I return p0 .end method .method public final minFreshSeconds()I .locals 0 iget p0, p0, Lokhttp3/CacheControl;->minFreshSeconds:I return p0 .end method .method public final mustRevalidate()Z .locals 0 iget-boolean p0, p0, Lokhttp3/CacheControl;->mustRevalidate:Z return p0 .end method .method public final noCache()Z .locals 0 iget-boolean p0, p0, Lokhttp3/CacheControl;->noCache:Z return p0 .end method .method public final noStore()Z .locals 0 iget-boolean p0, p0, Lokhttp3/CacheControl;->noStore:Z return p0 .end method .method public final noTransform()Z .locals 0 iget-boolean p0, p0, Lokhttp3/CacheControl;->noTransform:Z return p0 .end method .method public final onlyIfCached()Z .locals 0 iget-boolean p0, p0, Lokhttp3/CacheControl;->onlyIfCached:Z return p0 .end method .method public final sMaxAgeSeconds()I .locals 0 iget p0, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I return p0 .end method .method public toString()Ljava/lang/String; .locals 5 iget-object v0, p0, Lokhttp3/CacheControl;->headerValue:Ljava/lang/String; if-nez v0, :cond_d .line 146 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()V iget-boolean v1, p0, Lokhttp3/CacheControl;->noCache:Z if-eqz v1, :cond_0 const-string v1, "no-cache, " .line 147 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_0 iget-boolean v1, p0, Lokhttp3/CacheControl;->noStore:Z if-eqz v1, :cond_1 const-string v1, "no-store, " .line 148 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_1 iget v1, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I const-string v2, ", " const/4 v3, -0x1 if-eq v1, v3, :cond_2 const-string v1, "max-age=" .line 149 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget v4, p0, Lokhttp3/CacheControl;->maxAgeSeconds:I invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_2 iget v1, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I if-eq v1, v3, :cond_3 const-string v1, "s-maxage=" .line 150 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget v4, p0, Lokhttp3/CacheControl;->sMaxAgeSeconds:I invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_3 iget-boolean v1, p0, Lokhttp3/CacheControl;->isPrivate:Z if-eqz v1, :cond_4 const-string v1, "private, " .line 151 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_4 iget-boolean v1, p0, Lokhttp3/CacheControl;->isPublic:Z if-eqz v1, :cond_5 const-string v1, "public, " .line 152 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_5 iget-boolean v1, p0, Lokhttp3/CacheControl;->mustRevalidate:Z if-eqz v1, :cond_6 const-string v1, "must-revalidate, " .line 153 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_6 iget v1, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I if-eq v1, v3, :cond_7 const-string v1, "max-stale=" .line 154 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget v4, p0, Lokhttp3/CacheControl;->maxStaleSeconds:I invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_7 iget v1, p0, Lokhttp3/CacheControl;->minFreshSeconds:I if-eq v1, v3, :cond_8 const-string v1, "min-fresh=" .line 155 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object v1 iget v3, p0, Lokhttp3/CacheControl;->minFreshSeconds:I invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object v1 invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_8 iget-boolean v1, p0, Lokhttp3/CacheControl;->onlyIfCached:Z if-eqz v1, :cond_9 const-string v1, "only-if-cached, " .line 156 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_9 iget-boolean v1, p0, Lokhttp3/CacheControl;->noTransform:Z if-eqz v1, :cond_a const-string v1, "no-transform, " .line 157 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; :cond_a iget-boolean v1, p0, Lokhttp3/CacheControl;->immutable:Z if-eqz v1, :cond_b const-string v1, "immutable, " .line 158 invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; .line 159 :cond_b move-object v1, v0 check-cast v1, Ljava/lang/CharSequence; invoke-interface {v1}, Ljava/lang/CharSequence;->length()I move-result v1 if-nez v1, :cond_c const-string p0, "" return-object p0 .line 160 :cond_c invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I move-result v1 add-int/lit8 v1, v1, -0x2 invoke-virtual {v0}, Ljava/lang/StringBuilder;->length()I move-result v2 invoke-virtual {v0, v1, v2}, Ljava/lang/StringBuilder;->delete(II)Ljava/lang/StringBuilder; .line 146 invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object v0 const-string v1, "StringBuilder().apply(builderAction).toString()" invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V iput-object v0, p0, Lokhttp3/CacheControl;->headerValue:Ljava/lang/String; :cond_d return-object v0 .end method