Skip to content
Snippets Groups Projects
Select Git revision
  • 49894a49487518e96f6aca999750ae7804465dad
  • main default protected
2 results

TeachingUnitResult.java

Blame
  • Forked from LABOUREL Arnaud / student_template
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    Point.java 528 B
    package image;
    
    import java.util.Objects;
    
    /**
     * Created by Arnaud Labourel on 09/11/2018.
     */
    public class Point {
        public final int x, y;
    
        Point(int x, int y) {
            this.x = x;
            this.y = y;
        }
    
        @Override
        public final boolean equals(Object o) {
            if (this == o) return true;
            if (!(o instanceof Point point)) return false;
            return x == point.x &&
                    y == point.y;
        }
    
        @Override
        public final int hashCode() {
            return Objects.hash(x, y);
        }
    
    
    }