public int[] patternToIntArray() {
        if (mPattern == null) {
            return new int[0];
        }
        final int patternSize = mPattern.size();
        final int[] array = new int[patternSize * 2];
        for (int i = 0; i < patternSize; i++) {
            array[i] = mPattern.get(i).getRow();
            array[i + 1] = mPattern.get(i).getColumn();
        }
        return array;
    }
@return a String that represents the current pattern. Never null
android-patternview/src/main/java/com/eftimoff/patternview/PatternView.java