/** * Checks if this mutation equals another. Two mutations are equal if they target the same row and * have the same modifications and deletions, in order. This method may be removed in a future API * revision in favor of {@link #equals(Object)}. See ACCUMULO-1627 for more information. * * @param m * mutation to compare * @return true if this mutation equals the other, false otherwise */ public boolean equals(Mutation m) { return this.equals((Object) m); }
@Override public boolean equals(Object o) { return o == this || (o != null && o instanceof ServerMutation && systemTime == ((ServerMutation) o).systemTime && super.equals(o)); }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o == null || !(o instanceof ConditionalMutation)) { return false; } ConditionalMutation cm = (ConditionalMutation) o; if (!conditions.equals(cm.conditions)) { return false; } return super.equals(o); }
/** * Checks if this mutation equals another. Two mutations are equal if they target the same row and * have the same modifications and deletions, in order. This method may be removed in a future API * revision in favor of {@link #equals(Object)}. See ACCUMULO-1627 for more information. * * @param m * mutation to compare * @return true if this mutation equals the other, false otherwise */ public boolean equals(Mutation m) { return this.equals((Object) m); }
@Override public boolean equals(Object o) { return o == this || (o != null && o instanceof ServerMutation && systemTime == ((ServerMutation) o).systemTime && super.equals(o)); }
@Override public boolean equals(Object o) { if (o == this) { return true; } if (o == null || !(o instanceof ConditionalMutation)) { return false; } ConditionalMutation cm = (ConditionalMutation) o; if (!conditions.equals(cm.conditions)) { return false; } return super.equals(o); }
@Override public int compare(Mutation o1, Mutation o2) { if (o1.equals(o2)) { return 0; } else { if (o1.hashCode() < o2.hashCode()) { return -1; } else { return 1; } } } });