private Coordinate getDisplacement(Direction direction) {
    switch (direction) {
      case WEST:
        return new Coordinate(-1, 0);
      case NORTH_WEST:
        return new Coordinate(-1, -1);
      case NORTH:
        return new Coordinate(0, -1);
      case NORTH_EAST:
        return new Coordinate(1, -1);
      case EAST:
        return new Coordinate(1, 0);
      case SOUTH_EAST:
        return new Coordinate(1, 1);
      case SOUTH:
        return new Coordinate(0, 1);
      case SOUTH_WEST:
      default:
        return new Coordinate(-1, 1);
    }
  }
Returns the position adjacent to the provided one in a specific direction.
dividers/src/main/java/com/karumi/dividers/PositionAdapter.java