public class IndexRangeNegativeFactory extends Object
IndexRangeNegative
.Modifier and Type | Method and Description |
---|---|
static IndexRangeNegative |
parse(String str)
Parses a string to convert it into an
IndexRangeNegative . |
public static IndexRangeNegative parse(String str) throws OperationFailedException
IndexRangeNegative
.
The string should be in any of the following formats:
start:end
single_index
:end
start:
start
is a positive or negative integer indicating the start index of
the range (where 0 is the first element).
end
is a positive or negative integer indicating the end index of the
range (inclusive, where either -1 or length(array) - 1 is the last element).
single_index
implies the same value for both start
and end
.
str
- the string to parseOperationFailedException
- if the string does not match any of the patterns above.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.