public boolean equals()

in shared/java/PathSegment.java [60:72]


    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        PathSegment segment = (PathSegment) o;
        return _verb == segment._verb &&
               (_verb != PathVerb.DONE ? Objects.equals(_p0, segment._p0) : true) &&
               (_verb == PathVerb.LINE || _verb == PathVerb.QUAD || _verb == PathVerb.CONIC || _verb == PathVerb.CUBIC ? Objects.equals(_p1, segment._p1) : true) &&
               (_verb == PathVerb.QUAD || _verb == PathVerb.CONIC || _verb == PathVerb.CUBIC ? Objects.equals(_p2, segment._p2) : true) &&
               (_verb == PathVerb.CUBIC ? Objects.equals(_p3, segment._p3) : true) &&
               (_verb == PathVerb.CONIC ? Float.compare(segment._conicWeight, _conicWeight) == 0 : true) &&
               (_verb == PathVerb.LINE  ? _closeLine == segment._closeLine : true) &&
               (_verb != PathVerb.DONE ? _closedContour == segment._closedContour : true);
    }