CalendarConstraints$Builder.smali
.class public final Lcom/google/android/material/datepicker/CalendarConstraints$Builder;
.super Ljava/lang/Object;
.source "CalendarConstraints.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lcom/google/android/material/datepicker/CalendarConstraints;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Builder"
.end annotation
# static fields
.field private static final DEEP_COPY_VALIDATOR_KEY:Ljava/lang/String; = "DEEP_COPY_VALIDATOR_KEY"
.field static final DEFAULT_END:J
.field static final DEFAULT_START:J
# instance fields
.field private end:J
.field private openAt:Ljava/lang/Long;
.field private start:J
.field private validator:Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
# direct methods
.method static constructor <clinit>()V
.registers 2
const/16 v0, 0x76c
const/4 v1, 0x0
.line 204
invoke-static {v0, v1}, Lcom/google/android/material/datepicker/Month;->create(II)Lcom/google/android/material/datepicker/Month;
move-result-object v0
iget-wide v0, v0, Lcom/google/android/material/datepicker/Month;->timeInMillis:J
invoke-static {v0, v1}, Lcom/google/android/material/datepicker/UtcDates;->canonicalYearMonthDay(J)J
move-result-wide v0
sput-wide v0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->DEFAULT_START:J
const/16 v0, 0x834
const/16 v1, 0xb
.line 210
invoke-static {v0, v1}, Lcom/google/android/material/datepicker/Month;->create(II)Lcom/google/android/material/datepicker/Month;
move-result-object v0
iget-wide v0, v0, Lcom/google/android/material/datepicker/Month;->timeInMillis:J
invoke-static {v0, v1}, Lcom/google/android/material/datepicker/UtcDates;->canonicalYearMonthDay(J)J
move-result-wide v0
sput-wide v0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->DEFAULT_END:J
return-void
.end method
.method public constructor <init>()V
.registers 3
.line 219
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 214
sget-wide v0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->DEFAULT_START:J
iput-wide v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->start:J
.line 215
sget-wide v0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->DEFAULT_END:J
iput-wide v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->end:J
const-wide/high16 v0, -0x8000000000000000L
.line 217
invoke-static {v0, v1}, Lcom/google/android/material/datepicker/DateValidatorPointForward;->from(J)Lcom/google/android/material/datepicker/DateValidatorPointForward;
move-result-object v0
iput-object v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->validator:Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
return-void
.end method
.method constructor <init>(Lcom/google/android/material/datepicker/CalendarConstraints;)V
.registers 4
.line 221
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
.line 214
sget-wide v0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->DEFAULT_START:J
iput-wide v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->start:J
.line 215
sget-wide v0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->DEFAULT_END:J
iput-wide v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->end:J
const-wide/high16 v0, -0x8000000000000000L
.line 217
invoke-static {v0, v1}, Lcom/google/android/material/datepicker/DateValidatorPointForward;->from(J)Lcom/google/android/material/datepicker/DateValidatorPointForward;
move-result-object v0
iput-object v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->validator:Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
.line 222
# getter for: Lcom/google/android/material/datepicker/CalendarConstraints;->start:Lcom/google/android/material/datepicker/Month;
invoke-static {p1}, Lcom/google/android/material/datepicker/CalendarConstraints;->access$100(Lcom/google/android/material/datepicker/CalendarConstraints;)Lcom/google/android/material/datepicker/Month;
move-result-object v0
iget-wide v0, v0, Lcom/google/android/material/datepicker/Month;->timeInMillis:J
iput-wide v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->start:J
.line 223
# getter for: Lcom/google/android/material/datepicker/CalendarConstraints;->end:Lcom/google/android/material/datepicker/Month;
invoke-static {p1}, Lcom/google/android/material/datepicker/CalendarConstraints;->access$200(Lcom/google/android/material/datepicker/CalendarConstraints;)Lcom/google/android/material/datepicker/Month;
move-result-object v0
iget-wide v0, v0, Lcom/google/android/material/datepicker/Month;->timeInMillis:J
iput-wide v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->end:J
.line 224
# getter for: Lcom/google/android/material/datepicker/CalendarConstraints;->openAt:Lcom/google/android/material/datepicker/Month;
invoke-static {p1}, Lcom/google/android/material/datepicker/CalendarConstraints;->access$300(Lcom/google/android/material/datepicker/CalendarConstraints;)Lcom/google/android/material/datepicker/Month;
move-result-object v0
iget-wide v0, v0, Lcom/google/android/material/datepicker/Month;->timeInMillis:J
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v0
iput-object v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->openAt:Ljava/lang/Long;
.line 225
# getter for: Lcom/google/android/material/datepicker/CalendarConstraints;->validator:Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
invoke-static {p1}, Lcom/google/android/material/datepicker/CalendarConstraints;->access$400(Lcom/google/android/material/datepicker/CalendarConstraints;)Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
move-result-object p1
iput-object p1, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->validator:Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
return-void
.end method
# virtual methods
.method public build()Lcom/google/android/material/datepicker/CalendarConstraints;
.registers 10
.line 322
new-instance v0, Landroid/os/Bundle;
invoke-direct {v0}, Landroid/os/Bundle;-><init>()V
.line 323
iget-object v1, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->validator:Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
const-string v2, "DEEP_COPY_VALIDATOR_KEY"
invoke-virtual {v0, v2, v1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V
.line 324
new-instance v1, Lcom/google/android/material/datepicker/CalendarConstraints;
iget-wide v3, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->start:J
.line 325
invoke-static {v3, v4}, Lcom/google/android/material/datepicker/Month;->create(J)Lcom/google/android/material/datepicker/Month;
move-result-object v4
iget-wide v5, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->end:J
.line 326
invoke-static {v5, v6}, Lcom/google/android/material/datepicker/Month;->create(J)Lcom/google/android/material/datepicker/Month;
move-result-object v5
.line 327
invoke-virtual {v0, v2}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;
move-result-object v0
move-object v6, v0
check-cast v6, Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
iget-object v0, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->openAt:Ljava/lang/Long;
if-nez v0, :cond_27
const/4 v0, 0x0
goto :goto_2f
.line 328
:cond_27
invoke-virtual {v0}, Ljava/lang/Long;->longValue()J
move-result-wide v2
invoke-static {v2, v3}, Lcom/google/android/material/datepicker/Month;->create(J)Lcom/google/android/material/datepicker/Month;
move-result-object v0
:goto_2f
move-object v7, v0
const/4 v8, 0x0
move-object v3, v1
invoke-direct/range {v3 .. v8}, Lcom/google/android/material/datepicker/CalendarConstraints;-><init>(Lcom/google/android/material/datepicker/Month;Lcom/google/android/material/datepicker/Month;Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;Lcom/google/android/material/datepicker/Month;Lcom/google/android/material/datepicker/CalendarConstraints$1;)V
return-object v1
.end method
.method public setEnd(J)Lcom/google/android/material/datepicker/CalendarConstraints$Builder;
.registers 3
.line 278
iput-wide p1, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->end:J
return-object p0
.end method
.method public setOpenAt(J)Lcom/google/android/material/datepicker/CalendarConstraints$Builder;
.registers 3
.line 305
invoke-static {p1, p2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object p1
iput-object p1, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->openAt:Ljava/lang/Long;
return-object p0
.end method
.method public setStart(J)Lcom/google/android/material/datepicker/CalendarConstraints$Builder;
.registers 3
.line 251
iput-wide p1, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->start:J
return-object p0
.end method
.method public setValidator(Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;)Lcom/google/android/material/datepicker/CalendarConstraints$Builder;
.registers 2
.line 315
iput-object p1, p0, Lcom/google/android/material/datepicker/CalendarConstraints$Builder;->validator:Lcom/google/android/material/datepicker/CalendarConstraints$DateValidator;
return-object p0
.end method