Groovy – isReverse()
Is this a reversed Range, iterating backward? Syntax boolean isReverse() Parameters None Return Value Boolean value of true or false on whether the range is reversed. Example Following is an…
Groovy
Is this a reversed Range, iterating backward? Syntax boolean isReverse() Parameters None Return Value Boolean value of true or false on whether the range is reversed. Example Following is an…
Get the upper value of this Range. Syntax Comparable getTo() Parameters None Return Value The upper value of the range. Example Following is an example of the usage of this…
Get the lower value of this Range. Syntax Comparable getFrom() Parameters None Return Value The lower value of the range. Example Following is an example of the usage of this…
Returns the element at the specified position in this Range. Syntax Object get(int index) Parameters Index – The index value to get from the range. Return Value The range value…
Checks if a range contains a specific value. Syntax boolean contains(Object obj) Parameters Obj − The value to check in the range list. Return Value Returns true if this Range contains…
A ranges is a shorthand for specifying a sequence of values. A Range is denoted by the first and last values in the sequence, and Range can be inclusive or…
Converts all of the characters in this String to lower case. Syntax String toLowerCase() Parameters None Return Value The modified string in lower case. Following is an example of the…
Converts all of the characters in this String to upper case. Syntax String toUpperCase() Parameters None Return Value The modified string in upper case. Example Following is an example of…
Returns a new String that is a substrings of this String. This method has 2 different variants String substring(int beginIndex) − Pad the String with the spaces appended to the right.…
Splits this string around matches of the given regular expression. Syntax String[] split(String regex) Parameters regex - the delimiting regular expression. Return Value It returns the array of strings computed…