Package org.jblas.ranges
Class PointRange
- java.lang.Object
-
- org.jblas.ranges.PointRange
-
- All Implemented Interfaces:
Range
public class PointRange extends java.lang.Object implements Range
A PointRange is a range which only has a single point.
-
-
Constructor Summary
Constructors Constructor Description PointRange(int v)Construct a new PointRange with the one given index.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasMore()More indices available?intindex()Consecutive numbering of current index.voidinit(int l, int u)Initialize Range to available indicesintlength()Total number of indices.voidnext()Increase counter.java.lang.StringtoString()intvalue()Get current index.
-
-
-
Constructor Detail
-
PointRange
public PointRange(int v)
Construct a new PointRange with the one given index.
-
-
Method Detail
-
init
public void init(int l, int u)
Description copied from interface:RangeInitialize Range to available indices
-
index
public int index()
Description copied from interface:RangeConsecutive numbering of current index.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-