/** * Returns a new {@link Revision} whose revision number is later than this {@link Revision}. * * @param count the number of commits to go forward */ public Revision forward(int count) { if (count == 0) { return this; } if (count < 0) { throw new IllegalArgumentException("count " + count + " (expected: a non-negative integer)"); } return new Revision(add(major, count)); }
/** * Returns a new {@link Revision} whose revision number is later than this {@link Revision}. * * @param count the number of commits to go forward */ public Revision forward(int count) { if (count == 0) { return this; } if (count < 0) { throw new IllegalArgumentException("count " + count + " (expected: a non-negative integer)"); } return new Revision(add(major, count)); }
/** * Returns a new {@link Revision} whose revision number is later than this {@link Revision}. * * @param count the number of commits to go forward */ public Revision forward(int count) { if (count == 0) { return this; } if (count < 0) { throw new IllegalArgumentException("count " + count + " (expected: a non-negative integer)"); } return new Revision(add(major, count)); }