|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NumberContinuum<N extends java.lang.Number>
Represents a continuum of integer numbers, from 0 to given count. Only the count and order of numbers in continuum can be modified.
Method Summary | |
---|---|
NumberContinuum<N> |
copyNumberContinuum()
|
N |
get(N position)
Returns the number at given position in the list. |
N |
indexOf(N n)
Returns the position of the given number in the list. |
void |
move(N start,
N end,
N target)
Moves the given range of numbers before the given target. |
boolean |
move(NumberCollection<N> subject,
Matrix.DropPosition dropPosition,
N target)
|
Methods inherited from interface pl.netanel.swt.matrix.NumberCollection |
---|
contains, contains, contains, containsAll, containsAll, containsAll, containsAny, containsAny, containsAny, copyNumberCollection, getCount, getCount, isEmpty, seq, seq |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Method Detail |
---|
N get(N position)
position
- position of the item in the list
java.lang.IndexOutOfBoundsException
- when position > getCountN indexOf(N n)
n
- number to get the position of
void move(N start, N end, N target)
start
, end
and target
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 itemstarget
- the index of the target item
java.lang.IllegalArgumentException
- if start or end is null
java.lang.IndexOutOfBoundsException
- if start or end is out of 0 ...
NumberCollection.getCount()
-1 bounds
java.lang.IndexOutOfBoundsException
- if target is out of 0 ...
NumberCollection.getCount()
bounds
java.lang.IllegalArgumentException
- if start is greater then endboolean move(NumberCollection<N> subject, Matrix.DropPosition dropPosition, N target)
NumberContinuum<N> copyNumberContinuum()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |