@@ -55,6 +55,9 @@ private void crop() {
5555
5656 /**
5757 * Get the length of the list.
58+ *
59+ * @webref floatlist:method
60+ * @brief Get the length of the list
5861 */
5962 public int size () {
6063 return count ;
@@ -76,6 +79,9 @@ public void resize(int length) {
7679
7780 /**
7881 * Remove all entries from the list.
82+ *
83+ * @webref floatlist:method
84+ * @brief Remove all entries from the list
7985 */
8086 public void clear () {
8187 count = 0 ;
@@ -84,6 +90,9 @@ public void clear() {
8490
8591 /**
8692 * Get an entry at a particular index.
93+ *
94+ * @webref floatlist:method
95+ * @brief Get an entry at a particular index
8796 */
8897 public float get (int index ) {
8998 return data [index ];
@@ -94,6 +103,9 @@ public float get(int index) {
94103 * Set the entry at a particular index. If the index is past the length of
95104 * the list, it'll expand the list to accommodate, and fill the intermediate
96105 * entries with 0s.
106+ *
107+ * @webref floatlist:method
108+ * @brief Set the entry at a particular index
97109 */
98110 public void set (int index , float what ) {
99111 if (index >= count ) {
@@ -107,7 +119,12 @@ public void set(int index, float what) {
107119 }
108120
109121
110- /** remove an element from the specified index */
122+ /**
123+ * Remove an element from the specified index.
124+ *
125+ * @webref floatlist:method
126+ * @brief Remove an element from the specified index
127+ */
111128 public void remove (int index ) {
112129// int[] outgoing = new int[count - 1];
113130// System.arraycopy(data, 0, outgoing, 0, index);
@@ -208,7 +225,12 @@ public boolean replaceValues(float value, float newValue) {
208225
209226
210227
211- /** Add a new entry to the list. */
228+ /**
229+ * Add a new entry to the list.
230+ *
231+ * @webref floatlist:method
232+ * @brief Add a new entry to the list
233+ */
212234 public void append (float value ) {
213235 if (count == data .length ) {
214236 data = PApplet .expand (data );
@@ -367,7 +389,10 @@ public int index(float what) {
367389// }
368390// }
369391
370-
392+ /**
393+ * @webref floatlist:method
394+ * @brief To come...
395+ */
371396 public boolean hasValue (float value ) {
372397 if (Float .isNaN (value )) {
373398 for (int i = 0 ; i < count ; i ++) {
@@ -391,27 +416,42 @@ public boolean hasValue(float value) {
391416// data[index]++;
392417// }
393418
394-
419+ /**
420+ * @webref floatlist:method
421+ * @brief To come...
422+ */
395423 public void add (int index , float amount ) {
396424 data [index ] += amount ;
397425 }
398426
399-
427+ /**
428+ * @webref floatlist:method
429+ * @brief To come...
430+ */
400431 public void sub (int index , float amount ) {
401432 data [index ] -= amount ;
402433 }
403434
404-
435+ /**
436+ * @webref floatlist:method
437+ * @brief To come...
438+ */
405439 public void mult (int index , float amount ) {
406440 data [index ] *= amount ;
407441 }
408442
409-
443+ /**
444+ * @webref floatlist:method
445+ * @brief To come...
446+ */
410447 public void div (int index , float amount ) {
411448 data [index ] /= amount ;
412449 }
413450
414-
451+ /**
452+ * @webref floatlist:method
453+ * @brief To come...
454+ */
415455 public float min () {
416456 if (count == 0 ) {
417457 throw new ArrayIndexOutOfBoundsException ("Cannot use min() on IntList of length 0." );
@@ -438,7 +478,10 @@ public float min() {
438478 return m ;
439479 }
440480
441-
481+ /**
482+ * @webref floatlist:method
483+ * @brief To come...
484+ */
442485 public float max () {
443486 if (count == 0 ) {
444487 throw new ArrayIndexOutOfBoundsException ("Cannot use max() on IntList of length 0." );
@@ -466,13 +509,23 @@ public float max() {
466509 }
467510
468511
469- /** Sorts the array in place. */
512+ /**
513+ * Sorts the array in place.
514+ *
515+ * @webref floatlist:method
516+ * @brief Sorts an array in place
517+ */
470518 public void sort () {
471519 Arrays .sort (data , 0 , count );
472520 }
473521
474522
475- /** reverse sort, orders values from highest to lowest */
523+ /**
524+ * Reverse sort, orders values from highest to lowest
525+ *
526+ * @webref floatlist:method
527+ * @brief To come...
528+ */
476529 public void sortReverse () {
477530 new Sort () {
478531 @ Override
@@ -512,7 +565,10 @@ public void subset(int start, int num) {
512565 count = num ;
513566 }
514567
515-
568+ /**
569+ * @webref floatlist:method
570+ * @brief To come...
571+ */
516572 public void reverse () {
517573 int ii = count - 1 ;
518574 for (int i = 0 ; i < count /2 ; i ++) {
@@ -527,6 +583,9 @@ public void reverse() {
527583 /**
528584 * Randomize the order of the list elements. Note that this does not
529585 * obey the randomSeed() function in PApplet.
586+ *
587+ * @webref floatlist:method
588+ * @brief Randomize the order of the list elements
530589 */
531590 public void shuffle () {
532591 Random r = new Random ();
@@ -603,6 +662,8 @@ public boolean hasNext() {
603662 /**
604663 * Create a new array with a copy of all the values.
605664 * @return an array sized by the length of the list with each of the values.
665+ * @webref floatlist:method
666+ * @brief Create a new array with a copy of all the values
606667 */
607668 public int [] array () {
608669 return array (null );
0 commit comments