hollow/src/main/java/com/netflix/hollow/tools/diff/count/HollowFieldDiff.java
public void addDiff(int fromOrdinal, int toOrdinal, int score) {
        if(isSameDiffAsLastAdd(fromOrdinal, toOrdinal)) {
            int scoreIdx = diffPairScores.size() - 1;
            diffPairScores.set(scoreIdx, diffPairScores.get(scoreIdx) + score);
        } else {
            diffFromOrdinals.add(fromOrdinal);
            diffToOrdinals.add(toOrdinal);
            diffPairScores.add(score);
        }

        totalDiffScore += score;
    }
public void addDiff(int fromOrdinal, int toOrdinal, int score) {
        if(isSameDiffAsLastAdd(fromOrdinal, toOrdinal)) {
            int scoreIdx = diffPairScores.size() - 1;
            diffPairScores.set(scoreIdx, diffPairScores.get(scoreIdx) + score);
        } else {
            diffFromOrdinals.add(fromOrdinal);
            diffToOrdinals.add(toOrdinal);
            diffPairScores.add(score);
        }

        totalDiffScore += score;
    }
public void addDiff ( int fromOrdinal , int toOrdinal , int score ) { if ( isSameDiffAsLastAdd ( fromOrdinal , toOrdinal ) ) { int scoreIdx = diffPairScores . size ( ) - 1 ; diffPairScores . set ( scoreIdx , diffPairScores . get ( scoreIdx ) + score ) ; } else { diffFromOrdinals . add ( fromOrdinal ) ; diffToOrdinals . add ( toOrdinal ) ; diffPairScores . add ( score ) ; } totalDiffScore += score ; }
Should be called exclusively from the {@link HollowDiff} -- not intended for external consumption

@param fromOrdinal the from ordinal
@param toOrdinal the to ordinal
@param score the score
Should be called exclusively from the { @link HollowDiff } -- not intended for external consumption