Spec-Zone .ru
спецификации, руководства, описания, API
|
public interface ObservableIntegerArray extends ObservableArray<ObservableIntegerArray>
ArrayChangeListener
Modifier and Type | Method and Description |
---|---|
void |
addAll(int... elements)
Appends given
elements to the end of array. |
void |
addAll(int[] src,
int srcIndex,
int length) |
void |
addAll(ObservableIntegerArray src) |
void |
addAll(ObservableIntegerArray src,
int srcIndex,
int length) |
void |
copyTo(int srcIndex,
int[] dest,
int destIndex,
int length)
Copies specified portion of array into
dest array. |
void |
copyTo(int srcIndex,
ObservableIntegerArray dest,
int destIndex,
int length) |
int |
get(int index)
Gets a single value of array.
|
void |
set(int index,
int value)
Sets a single value in the array.
|
void |
set(int destIndex,
int[] src,
int srcIndex,
int length)
Sets portion of observable array to a copy of given array.
|
void |
set(int destIndex,
ObservableIntegerArray src,
int srcIndex,
int length) |
void |
setAll(int... elements)
Sets observable array to a copy of given array.
|
void |
setAll(int[] src,
int srcIndex,
int length) |
void |
setAll(ObservableIntegerArray src) |
void |
setAll(ObservableIntegerArray src,
int srcIndex,
int length) |
int[] |
toArray(int[] dest)
Returns an array containing copy of the observable array.
|
int[] |
toArray(int srcIndex,
int[] dest,
int length)
Returns an array containing copy of specified portion of the observable array.
|
addListener, clear, ensureCapacity, removeListener, resize, size, trimToSize
addListener, removeListener
void copyTo(int srcIndex, int[] dest, int destIndex, int length)
dest
array. Throws
the same exceptions as System.arraycopy(java.lang.Object,
int, java.lang.Object, int, int)
srcIndex
- starting position in the observable arraydest
- destination arraydestIndex
- starting position in destination arraylength
- length of portion to copyvoid copyTo(int srcIndex, ObservableIntegerArray dest, int destIndex, int length)
int get(int index)
index
- index of element to getjava.lang.ArrayIndexOutOfBoundsException
- if index
is outside
array boundsvoid addAll(int... elements)
elements
to the end of array. Capacity is increased
if necessary to match the new size of the data.elements
- void addAll(ObservableIntegerArray src)
void addAll(int[] src, int srcIndex, int length)
void addAll(ObservableIntegerArray src, int srcIndex, int length)
void setAll(int... elements)
elements
- source array to copy.java.lang.NullPointerException
- if array
is nullvoid setAll(int[] src, int srcIndex, int length)
void setAll(ObservableIntegerArray src)
void setAll(ObservableIntegerArray src, int srcIndex, int length)
void set(int destIndex, int[] src, int srcIndex, int length)
System.arraycopy(java.lang.Object,
int, java.lang.Object, int, int)
destIndex
- the starting destination index in this observable arraysrc
- source array to copysrcIndex
- starting position in source arraylength
- length of portion to copyvoid set(int destIndex, ObservableIntegerArray src, int srcIndex, int length)
void set(int index, int value)
index
- index of the value to setAllvalue
- new value for the given indexjava.lang.ArrayIndexOutOfBoundsException
- if index
is outside
array boundsint[] toArray(int[] dest)
dest
- the array into which the observable array to be copied,
if it is big enough; otherwise, a new int array is allocated.
Ignored, if null.int[] toArray(int srcIndex, int[] dest, int length)
srcIndex
- starting position in the observable arraydest
- the array into which specified portion of the observable array
to be copied, if it is big enough;
otherwise, a new int array is allocated.
Ignored, if null.length
- length of portion to copyCopyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. Use is subject to