Files
rr3-apk/decompiled/sources/androidx/core/graphics/PathSegment.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

62 lines
2.0 KiB
Java

package androidx.core.graphics;
import android.graphics.PointF;
import androidx.annotation.NonNull;
import androidx.core.util.Preconditions;
/* loaded from: classes.dex */
public final class PathSegment {
private final PointF mEnd;
private final float mEndFraction;
private final PointF mStart;
private final float mStartFraction;
@NonNull
public PointF getEnd() {
return this.mEnd;
}
public float getEndFraction() {
return this.mEndFraction;
}
@NonNull
public PointF getStart() {
return this.mStart;
}
public float getStartFraction() {
return this.mStartFraction;
}
public PathSegment(@NonNull PointF pointF, float f, @NonNull PointF pointF2, float f2) {
this.mStart = (PointF) Preconditions.checkNotNull(pointF, "start == null");
this.mStartFraction = f;
this.mEnd = (PointF) Preconditions.checkNotNull(pointF2, "end == null");
this.mEndFraction = f2;
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof PathSegment)) {
return false;
}
PathSegment pathSegment = (PathSegment) obj;
return Float.compare(this.mStartFraction, pathSegment.mStartFraction) == 0 && Float.compare(this.mEndFraction, pathSegment.mEndFraction) == 0 && this.mStart.equals(pathSegment.mStart) && this.mEnd.equals(pathSegment.mEnd);
}
public int hashCode() {
int hashCode = this.mStart.hashCode() * 31;
float f = this.mStartFraction;
int floatToIntBits = (((hashCode + (f != 0.0f ? Float.floatToIntBits(f) : 0)) * 31) + this.mEnd.hashCode()) * 31;
float f2 = this.mEndFraction;
return floatToIntBits + (f2 != 0.0f ? Float.floatToIntBits(f2) : 0);
}
public String toString() {
return "PathSegment{start=" + this.mStart + ", startFraction=" + this.mStartFraction + ", end=" + this.mEnd + ", endFraction=" + this.mEndFraction + '}';
}
}