boolean fieldoldTrackPieceEqual = this.trackPieceBefore.equals(m.trackPieceBefore); boolean fieldnewTrackPieceEqual = this.trackPieceAfter.equals(m.trackPieceAfter);
boolean fieldoldTrackPieceEqual = ((trackPieceBefore == null && m.trackPieceBefore == null) || (trackPieceBefore != null && trackPieceBefore.equals (m.trackPieceBefore))); boolean fieldnewTrackPieceEqual = ((trackPieceAfter == null && m.trackPieceAfter == null) || (trackPieceAfter != null && trackPieceAfter.equals(m.trackPieceAfter)));
    public boolean equals(Object o) {        if (o instanceof ChangeTrackPieceMove) {            ChangeTrackPieceMove m = (ChangeTrackPieceMove)o;            boolean fieldPointEqual = this.location.equals(m.location);            boolean fieldoldTrackPieceEqual = this.trackPieceBefore.equals(m.trackPieceBefore);            boolean fieldnewTrackPieceEqual = this.trackPieceAfter.equals(m.trackPieceAfter);            if (fieldPointEqual && fieldoldTrackPieceEqual &&                    fieldnewTrackPieceEqual &&		    m.trackOwner.equals(trackOwner)) {                return true;            } else {                return false;            }        } else {            return false;        }    }