Commit e354b6dd authored by Rohan  Kumar's avatar Rohan Kumar
Browse files

"first push"

parent fe7fc255
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -12,6 +12,4 @@ public class ObjectMart {
         */

    }


}
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ public class Point {
    public void addRep(Point rr){
        this.reps.add(rr);
    }
    public void addReps(Set<Point> rr) { this.reps.addAll(rr); }

    public Set<Point> getReps() {return this.reps; }

+6 −0
Original line number Diff line number Diff line
@@ -35,6 +35,12 @@ public class PointSet {
    }

    public boolean updateReps(){
        Set<Point> reps = new HashSet<>(this.pset);

        for(Point p : pset){
            p.addReps(reps);
        }

        return true;
    }