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