boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; StringOperation operation = (StringOperation)o; return myRange.equals(operation.myRange) && myReplacement.equals(operation.myReplacement); }