Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9925bb05 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add toString to GnssCorrectionComponent" into main

parents 8061b28a e5729411
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -118,6 +118,17 @@ public final class GnssCorrectionComponent implements Parcelable {
        dest.writeTypedObject(mPseudorangeCorrection, flags);
    }

    @Override
    @NonNull
    public String toString() {
        StringBuilder builder = new StringBuilder("GnssCorrectionComponent[");
        builder.append("sourceKey = ").append(mSourceKey);
        builder.append(", validityInterval = ").append(mValidityInterval);
        builder.append(", pseudorangeCorrection = ").append(mPseudorangeCorrection);
        builder.append("]");
        return builder.toString();
    }

    /**
     * Time interval referenced against the GPS epoch. The start must be less than or equal to the
     * end. When the start equals the end, the interval is empty.