@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } CheckPoint that = (CheckPoint) o; return !(logPosition != null ? !logPosition.equals( that.logPosition ) : that.logPosition != null); }
@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } LogEntryStart start = (LogEntryStart) o; return authorId == start.authorId && lastCommittedTxWhenTransactionStarted == start.lastCommittedTxWhenTransactionStarted && masterId == start.masterId && timeWritten == start.timeWritten && Arrays.equals( additionalHeader, start.additionalHeader ) && startPosition.equals( start.startPosition ); }
@Override public boolean matchesSafely( CheckPoint cp ) { return cp != null && position.equals( cp.getLogPosition() ); }
@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } CheckPoint that = (CheckPoint) o; return !(logPosition != null ? !logPosition.equals( that.logPosition ) : that.logPosition != null); }
@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } RaftLogEntryMetadata that = (RaftLogEntryMetadata) o; if ( entryTerm != that.entryTerm ) { return false; } return startPosition.equals( that.startPosition ); }
@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } RaftLogEntryMetadata that = (RaftLogEntryMetadata) o; if ( entryTerm != that.entryTerm ) { return false; } return startPosition.equals( that.startPosition ); }
@Override public boolean equals( Object o ) { if ( this == o ) { return true; } if ( o == null || getClass() != o.getClass() ) { return false; } LogEntryStart start = (LogEntryStart) o; return authorId == start.authorId && lastCommittedTxWhenTransactionStarted == start.lastCommittedTxWhenTransactionStarted && masterId == start.masterId && timeWritten == start.timeWritten && Arrays.equals( additionalHeader, start.additionalHeader ) && startPosition.equals( start.startPosition ); }