public class NDIndexSlice extends java.lang.Object implements NDIndexElement
Constructor and Description |
---|
NDIndexSlice(java.lang.Long min,
java.lang.Long max,
java.lang.Long step)
Constructs a
NDIndexSlice instance with specified range and step. |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getMax()
Returns the end of the range.
|
java.lang.Long |
getMin()
Returns the start of the range.
|
int |
getRank()
Returns the number of dimensions occupied by this index element.
|
java.lang.Long |
getStep()
Returns the step between each slice.
|
public NDIndexSlice(java.lang.Long min, java.lang.Long max, java.lang.Long step)
NDIndexSlice
instance with specified range and step.min
- the start of the rangemax
- the end of the rangestep
- the step between each slicejava.lang.IllegalArgumentException
- Thrown if the step is zeropublic java.lang.Long getMin()
public java.lang.Long getMax()
public java.lang.Long getStep()
public int getRank()
getRank
in interface NDIndexElement