public static int compareAsInt(final ByteBuffer left, final int leftPos,
                                   final ByteBuffer right, final int rightPos) {
        return compareAs(left, leftPos, right, rightPos, Integer.BYTES);
    }
Compare two {@link ByteBuffer} objects as if they are int

@param left  A {@link ByteBuffer} representing a int
@param right A {@link ByteBuffer} representing a int
@return The result of the comparison, 0 if identical, <0 if left < right,
>0 if left < right
stroom-bytebuffer/src/main/java/stroom/bytebuffer/ByteBufferUtils.java