< prev index next >

modules/javafx.base/src/main/java/javafx/collections/ObservableIntegerArray.java

Print this page




 144      * @param destIndex the starting destination position in this observable array
 145      * @param src source array to copy
 146      * @param srcIndex starting position in source array
 147      * @param length length of portion to copy
 148      */
 149     public void set(int destIndex, int[] src, int srcIndex, int length);
 150 
 151     /**
 152      * Copies a portion of specified observable array into this observable array.
 153      * Throws the same exceptions as {@link System#arraycopy(java.lang.Object,
 154      * int, java.lang.Object, int, int) System.arraycopy()} method.
 155      * @param destIndex the starting destination position in this observable array
 156      * @param src source observable array to copy
 157      * @param srcIndex starting position in source array
 158      * @param length length of portion to copy
 159      */
 160     public void set(int destIndex, ObservableIntegerArray src, int srcIndex, int length);
 161 
 162     /**
 163      * Sets a single value in the array. Avoid using this method if many values
 164      * are updated, use {@linkplain #setAll(int, int[], int, int)} update method
 165      * instead with as minimum number of invocations as possible.
 166      * @param index index of the value to set
 167      * @param value new value for the given index
 168      * @throws ArrayIndexOutOfBoundsException if {@code index} is outside
 169      * array bounds
 170      */
 171     public void set(int index, int value);
 172 
 173     /**
 174      * Returns an array containing copy of the observable array.
 175      * If the observable array fits in the specified array, it is copied therein.
 176      * Otherwise, a new array is allocated with the size of the observable array.
 177      *
 178      * @param dest the array into which the observable array to be copied,
 179      *          if it is big enough; otherwise, a new int array is allocated.
 180      *          Ignored, if null.
 181      * @return an int array containing the copy of the observable array
 182      */
 183     public int[] toArray(int[] dest);
 184 


 144      * @param destIndex the starting destination position in this observable array
 145      * @param src source array to copy
 146      * @param srcIndex starting position in source array
 147      * @param length length of portion to copy
 148      */
 149     public void set(int destIndex, int[] src, int srcIndex, int length);
 150 
 151     /**
 152      * Copies a portion of specified observable array into this observable array.
 153      * Throws the same exceptions as {@link System#arraycopy(java.lang.Object,
 154      * int, java.lang.Object, int, int) System.arraycopy()} method.
 155      * @param destIndex the starting destination position in this observable array
 156      * @param src source observable array to copy
 157      * @param srcIndex starting position in source array
 158      * @param length length of portion to copy
 159      */
 160     public void set(int destIndex, ObservableIntegerArray src, int srcIndex, int length);
 161 
 162     /**
 163      * Sets a single value in the array. Avoid using this method if many values
 164      * are updated, use {@linkplain #set(int, int[], int, int)} update method
 165      * instead with as minimum number of invocations as possible.
 166      * @param index index of the value to set
 167      * @param value new value for the given index
 168      * @throws ArrayIndexOutOfBoundsException if {@code index} is outside
 169      * array bounds
 170      */
 171     public void set(int index, int value);
 172 
 173     /**
 174      * Returns an array containing copy of the observable array.
 175      * If the observable array fits in the specified array, it is copied therein.
 176      * Otherwise, a new array is allocated with the size of the observable array.
 177      *
 178      * @param dest the array into which the observable array to be copied,
 179      *          if it is big enough; otherwise, a new int array is allocated.
 180      *          Ignored, if null.
 181      * @return an int array containing the copy of the observable array
 182      */
 183     public int[] toArray(int[] dest);
 184 
< prev index next >