src/main/java/eu/digitisation/distance/EditSequence.java
public final void add(EdOp op) {
        ops.add(op);
        switch (op) {
            case KEEP:
                ++length1;
                ++length2;
                break;
            case INSERT:
                ++length2;
                ++numOps;
                break;
            case SUBSTITUTE:
                ++length1;
                ++length2;
                ++numOps;
                break;
            case DELETE:
                ++length1;
                ++numOps;
                break;
        }
    }
/**
     * Add an operation to the sequence
     *
     * @param op an edit operation
     */
Add an operation to the sequence
@param op an edit operation
Add an operation to the sequence @param op an edit operation
public final void add(EdOp op) {
        ops.add(op);
        switch (op) {
            case KEEP:
                ++length1;
                ++length2;
                break;
            case INSERT:
                ++length2;
                ++numOps;
                break;
            case SUBSTITUTE:
                ++length1;
                ++length2;
                ++numOps;
                break;
            case DELETE:
                ++length1;
                ++numOps;
                break;
        }
    }
public final void add ( EdOp op ) { ops . add ( op ) ; switch ( op ) { case KEEP : ++ length1 ; ++ length2 ; break ; case INSERT : ++ length2 ; ++ numOps ; break ; case SUBSTITUTE : ++ length1 ; ++ length2 ; ++ numOps ; break ; case DELETE : ++ length1 ; ++ numOps ; break ; } }
Add an operation to the sequence
 @param op an edit operation
Add an operation to the sequence @param op an edit operation