Updates IntRange using functions, so that the range param comes second.
@@ -788,7 +788,7 @@ public class AsciiString {
* Whether or not the characters should be flipped horizontally.
*/
public void setFlippedHorizontally(final boolean flipHorizontally) {
- setFlippedHorizontally(new IntRange(0, characters.length), flipHorizontally);
+ setFlippedHorizontally(flipHorizontally, new IntRange(0, characters.length));
}
/**
@@ -799,26 +799,26 @@ public class AsciiString {
* Whether or not the characters should be flipped vertically.
*/
public void setFlippedVertically(final boolean flipVertically) {
- setFlippedVertically(new IntRange(0, characters.length), flipVertically);
+ setFlippedVertically(flipVertically, new IntRange(0, characters.length));
}
/**
* Sets the specified range of characters to either be flipped horizontally
* or not flipped horizontally when being drawn.
*
+ * @param flipHorizontally
+ * Whether or not the characters should be flipped horizontally.
+ *
* @param range
* The x-axis (column) coordinates of the characters to begin/end
* the change between.
*
* Includes the first index and excludes the last index.
*
- * @param flipHorizontally
- * Whether or not the characters should be flipped horizontally.
- *
* @throws NullPointerException
* If the range is null.
*/
- public void setFlippedHorizontally(final @NonNull IntRange range, final boolean flipHorizontally) {
+ public void setFlippedHorizontally(final boolean flipHorizontally, final @NonNull IntRange range) {
checkRangeValidity(range);
final int beginIndex = range.getStart();
@@ -833,6 +833,9 @@ public class AsciiString {
* Sets the specified range of characters to either be flipped vertically
* or not flipped vertically when being drawn.
*
+ * @param flipVertically
+ * Whether or not the characters should be flipped vertically.
+ *
* @param range
* The x-axis (column) coordinates of the characters to begin/end
* the change between.
@@ -842,7 +845,7 @@ public class AsciiString {
* @throws NullPointerException
* If the range is null.
*/
- public void setFlippedVertically(final @NonNull IntRange range, final boolean flipVertically) {
+ public void setFlippedVertically(final boolean flipVertically, final @NonNull IntRange range) {
checkRangeValidity(range);
final int beginIndex = range.getStart();
@@ -861,25 +864,25 @@ public class AsciiString {
* Whether or not the characters should be underlined.
*/
public void setUnderlined(final boolean underline) {
- setUnderlined(new IntRange(0, characters.length), underline);
+ setUnderlined(underline, new IntRange(0, characters.length));
}
/**
* Sets the specified range of characters to be underlined when being drawn.
*
+ * @param underline
+ * Whether or not the characters should be underlined.
+ *
* @param range
* The x-axis (column) coordinates of the characters to begin/end the
* change between.
*
* Includes the first index and excludes the last index.
*
- * @param underline
- * Whether or not the characters should be underlined.
- *
* @throws NullPointerException
* If the range is null.
*/
- public void setUnderlined(final @NonNull IntRange range, final boolean underline) {
+ public void setUnderlined(final boolean underline, final @NonNull IntRange range) {
checkRangeValidity(range);
final int beginIndex = range.getStart();
