Skip to content
Snippets Groups Projects
Select Git revision
  • c2c141be8b25fd1f4ee3031909bd0ab9b398c9a5
  • main default protected
  • variant
3 results

Board.class

Blame
  • Forked from LABOUREL Arnaud / Firefighter 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);
        }
    
    
    }