|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.netanel.swt.matrix.Extent<N>
N
- specifies the indexing class for the receiverpublic class Extent<N extends java.lang.Number>
Represents an range of numbers between start and end values inclusive.
Instances of this class are immutable.
Method Summary | ||
---|---|---|
static
|
create(N start,
N end)
Creates extent of numbers between start and end values inclusively. |
|
static
|
createUnchecked(N start,
N end)
Creates extent of numbers between start and end values inclusively without arguments checking. |
|
boolean |
equals(java.lang.Object obj)
|
|
N |
getEnd()
Returns the last index of the range of items. |
|
N |
getStart()
Returns first index of the range of items. |
|
int |
hashCode()
|
|
static
|
numberIterator(pl.netanel.swt.matrix.Math<N> math,
java.util.List<pl.netanel.swt.matrix.MutableExtent<N>> items)
Deprecated. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <N extends java.lang.Number> Extent<N> create(N start, N end)
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of items
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IllegalArgumentException
- if start is greater then end
java.lang.IndexOutOfBoundsException
- if start or end is negativepublic static <N extends java.lang.Number> Extent<N> createUnchecked(N start, N end)
start
and end
numbers are item indexes in the model,
not the visual position of the item on the screen
which can be altered by move and hide operations.
start
- first index of the range of itemsend
- last index of the range of items
public N getStart()
public N getEnd()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
@Deprecated public static <N extends java.lang.Number> java.util.Iterator<N> numberIterator(pl.netanel.swt.matrix.Math<N> math, java.util.List<pl.netanel.swt.matrix.MutableExtent<N>> items)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |