granularity level: instruction
.class public final Landroidx/core/graphics/PathSegment;
.super Ljava/lang/Object;
.source "PathSegment.java"
.field private final mEnd:Landroid/graphics/PointF;
.field private final mEndFraction:F
.field private final mStart:Landroid/graphics/PointF;
.field private final mStartFraction:F
.method public constructor <init>(Landroid/graphics/PointF;FLandroid/graphics/PointF;F)V
.locals 1
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, "start == null"
invoke-static {p1, v0}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/graphics/PointF;
iput-object p1, p0, Landroidx/core/graphics/PathSegment;->mStart:Landroid/graphics/PointF;
iput p2, p0, Landroidx/core/graphics/PathSegment;->mStartFraction:F
const-string p1, "end == null"
invoke-static {p3, p1}, Landroidx/core/util/Preconditions;->checkNotNull(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p1
check-cast p1, Landroid/graphics/PointF;
iput-object p1, p0, Landroidx/core/graphics/PathSegment;->mEnd:Landroid/graphics/PointF;
iput p4, p0, Landroidx/core/graphics/PathSegment;->mEndFraction:F
return-void
.end method
.method public equals(Ljava/lang/Object;)Z
.locals 4
const/4 v0, 0x1
if-ne p0, p1, :cond_0
return v0
:cond_0
instance-of v1, p1, Landroidx/core/graphics/PathSegment;
const/4 v2, 0x0
if-nez v1, :cond_1
return v2
:cond_1
check-cast p1, Landroidx/core/graphics/PathSegment;
iget v1, p0, Landroidx/core/graphics/PathSegment;->mStartFraction:F
iget v3, p1, Landroidx/core/graphics/PathSegment;->mStartFraction:F
invoke-static {v1, v3}, Ljava/lang/Float;->compare(FF)I
move-result v1
if-nez v1, :cond_2
iget v1, p0, Landroidx/core/graphics/PathSegment;->mEndFraction:F
iget v3, p1, Landroidx/core/graphics/PathSegment;->mEndFraction:F
invoke-static {v1, v3}, Ljava/lang/Float;->compare(FF)I
move-result v1
if-nez v1, :cond_2
iget-object v1, p0, Landroidx/core/graphics/PathSegment;->mStart:Landroid/graphics/PointF;
iget-object v3, p1, Landroidx/core/graphics/PathSegment;->mStart:Landroid/graphics/PointF;
invoke-virtual {v1, v3}, Landroid/graphics/PointF;->equals(Ljava/lang/Object;)Z
move-result v1
if-eqz v1, :cond_2
iget-object v1, p0, Landroidx/core/graphics/PathSegment;->mEnd:Landroid/graphics/PointF;
iget-object p1, p1, Landroidx/core/graphics/PathSegment;->mEnd:Landroid/graphics/PointF;
invoke-virtual {v1, p1}, Landroid/graphics/PointF;->equals(Ljava/lang/Object;)Z
move-result p1
if-eqz p1, :cond_2
goto :goto_0
:cond_2
const/4 v0, 0x0
:goto_0
return v0
.end method
.method public getEnd()Landroid/graphics/PointF;
.locals 1
iget-object v0, p0, Landroidx/core/graphics/PathSegment;->mEnd:Landroid/graphics/PointF;
return-object v0
.end method
.method public getEndFraction()F
.locals 1
iget v0, p0, Landroidx/core/graphics/PathSegment;->mEndFraction:F
return v0
.end method
.method public getStart()Landroid/graphics/PointF;
.locals 1
iget-object v0, p0, Landroidx/core/graphics/PathSegment;->mStart:Landroid/graphics/PointF;
return-object v0
.end method
.method public getStartFraction()F
.locals 1
iget v0, p0, Landroidx/core/graphics/PathSegment;->mStartFraction:F
return v0
.end method
.method public hashCode()I
.locals 5
iget-object v0, p0, Landroidx/core/graphics/PathSegment;->mStart:Landroid/graphics/PointF;
invoke-virtual {v0}, Landroid/graphics/PointF;->hashCode()I
move-result v0
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Landroidx/core/graphics/PathSegment;->mStartFraction:F
const/4 v2, 0x0
const/4 v3, 0x0
cmpl-float v4, v1, v3
if-eqz v4, :cond_0
invoke-static {v1}, Ljava/lang/Float;->floatToIntBits(F)I
move-result v1
goto :goto_0
:cond_0
const/4 v1, 0x0
:goto_0
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget-object v1, p0, Landroidx/core/graphics/PathSegment;->mEnd:Landroid/graphics/PointF;
invoke-virtual {v1}, Landroid/graphics/PointF;->hashCode()I
move-result v1
add-int/2addr v0, v1
mul-int/lit8 v0, v0, 0x1f
iget v1, p0, Landroidx/core/graphics/PathSegment;->mEndFraction:F
cmpl-float v3, v1, v3
if-eqz v3, :cond_1
invoke-static {v1}, Ljava/lang/Float;->floatToIntBits(F)I
move-result v2
:cond_1
add-int/2addr v0, v2
return v0
.end method
.method public toString()Ljava/lang/String;
.locals 2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
const-string v1, "PathSegment{start="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/core/graphics/PathSegment;->mStart:Landroid/graphics/PointF;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", startFraction="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/core/graphics/PathSegment;->mStartFraction:F
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
const-string v1, ", end="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget-object v1, p0, Landroidx/core/graphics/PathSegment;->mEnd:Landroid/graphics/PointF;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
const-string v1, ", endFraction="
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
iget v1, p0, Landroidx/core/graphics/PathSegment;->mEndFraction:F
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(F)Ljava/lang/StringBuilder;
const/16 v1, 0x7d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
return-object v0
.end method