src/main/java/eu/digitisation/distance/ArrayEditDistance.java
public static <Type> int distance(Type[] first, Type[] second, 
            EditDistanceType type) {
        switch (type) {
            case INDEL:
                return indel(first, second);
            case LEVENSHTEIN:
                return levenshtein(first, second);
            case DAMERAU_LEVENSHTEIN:
                return DL(first, second);
            default:
                return levenshtein(first, second);
        }
    }
/**
     *
     * @param <Type>
     * @param first the first array.
     * @param second the second array.
     * @param type the type of distance to be computed
     * @return the distance between first and second (defaults to Levenshtein)
     */
@param 
@param first the first array.
@param second the second array.
@param type the type of distance to be computed
@return the distance between first and second (defaults to Levenshtein)
@param @param first the first array . @param second the second array . @param type the type of distance to be computed @return the distance between first and second ( defaults to Levenshtein )
public static <Type> int distance(Type[] first, Type[] second, 
            EditDistanceType type) {
        switch (type) {
            case INDEL:
                return indel(first, second);
            case LEVENSHTEIN:
                return levenshtein(first, second);
            case DAMERAU_LEVENSHTEIN:
                return DL(first, second);
            default:
                return levenshtein(first, second);
        }
    }
public static < Type > int distance ( Type [ ] first , Type [ ] second , EditDistanceType type ) { switch ( type ) { case INDEL : return indel ( first , second ) ; case LEVENSHTEIN : return levenshtein ( first , second ) ; case DAMERAU_LEVENSHTEIN : return DL ( first , second ) ; default : return levenshtein ( first , second ) ; } }
@param <Type>
 @param first the first array.
@param <Type > @param first the first array .