Searched defs:amount (Results 1 - 2 of 2) sorted by relevance

/ropes-1.2.2/src/org/ahmadsoft/ropes/impl/
H A DConcatenationRopeIteratorImpl.java63 public boolean canMoveBackwards(final int amount) { argument
64 return (-1 <= (this.currentRopePos - amount));
95 public void moveBackwards(final int amount) { argument
96 if (!this.canMoveBackwards(amount))
97 throw new IllegalArgumentException("Unable to move backwards " + amount + ".");
98 this.currentRopePos -= amount;
99 this.currentAbsolutePos -= amount;
102 public void moveForward(final int amount) { argument
103 this.currentAbsolutePos += amount;
104 int remainingAmt = amount;
[all...]
H A DConcatenationRopeReverseIteratorImpl.java65 public boolean canMoveBackwards(final int amount) { argument
66 return (this.currentRopePos + amount <= this.currentRope.length());
97 public void moveBackwards(final int amount) { argument
98 if (!this.canMoveBackwards(amount))
99 throw new IllegalArgumentException("Unable to move backwards " + amount + ".");
100 this.currentRopePos += amount;
101 this.currentAbsolutePos += amount;
104 public void moveForward(final int amount) { argument
105 this.currentAbsolutePos -= amount;
106 int remainingAmt = amount;
[all...]

Completed in 1 milliseconds