class WalPosition implements IncrementalPosition {

    @Override
    public int compareTo(final Position position) {
        if (null == position) {
            return 1;
        }
        long o1 = logSequenceNumber.asLong();
        long o2 = ((WalPosition) position).logSequenceNumber.asLong();
        return Long.compare(o1, o2);
    }

}