boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Movement movement = (Movement)o; return Objects.equals(myBeforePath, movement.myBeforePath) && Objects.equals(myAfterPath, movement.myAfterPath); }