| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -79,7 +79,7 @@ public FloatDict(String[] keys, float[] values) { | |||
| 79 | 79 | ||
| 80 | 80 | /** | |
| 81 | 81 | * @webref floatdict:method | |
| 82 | - * @brief To come... | ||
| 82 | + * @brief Returns the number of key/value pairs | ||
| 83 | 83 | */ | |
| 84 | 84 | public int size() { | |
| 85 | 85 | return count; | |
@@ -122,7 +122,7 @@ protected void crop() { | |||
| 122 | 122 | ||
| 123 | 123 | /** | |
| 124 | 124 | * @webref floatdict:method | |
| 125 | - * @brief To come... | ||
| 125 | + * @brief Return the internal array being used to store the keys | ||
| 126 | 126 | */ | |
| 127 | 127 | public Iterable<String> keys() { | |
| 128 | 128 | return new Iterable<String>() { | |
@@ -210,7 +210,7 @@ public float value(int index) { | |||
| 210 | 210 | ||
| 211 | 211 | /** | |
| 212 | 212 | * @webref floatdict:method | |
| 213 | - * @brief To come... | ||
| 213 | + * @brief Return the internal array being used to store the values | ||
| 214 | 214 | */ | |
| 215 | 215 | public Iterable<Float> values() { | |
| 216 | 216 | return new Iterable<Float>() { | |
@@ -277,9 +277,9 @@ public float get(String key) { | |||
| 277 | 277 | ||
| 278 | 278 | /** | |
| 279 | 279 | * @webref floatdict:method | |
| 280 | - * @brief To come... | ||
| 280 | + * @brief Create a new key/value pair or change the value of one | ||
| 281 | 281 | */ | |
| 282 | - public void set(String key, int amount) { | ||
| 282 | + public void set(String key, float amount) { | ||
| 283 | 283 | int index = index(key); | |
| 284 | 284 | if (index == -1) { | |
| 285 | 285 | create(key, amount); | |
@@ -291,7 +291,7 @@ public void set(String key, int amount) { | |||
| 291 | 291 | ||
| 292 | 292 | /** | |
| 293 | 293 | * @webref floatdict:method | |
| 294 | - * @brief To come... | ||
| 294 | + * @brief Check if a key is a part of the data structure | ||
| 295 | 295 | */ | |
| 296 | 296 | public boolean hasKey(String key) { | |
| 297 | 297 | return index(key) != -1; | |
@@ -392,7 +392,7 @@ protected void create(String what, float much) { | |||
| 392 | 392 | ||
| 393 | 393 | /** | |
| 394 | 394 | * @webref floatdict:method | |
| 395 | - * @brief To come... | ||
| 395 | + * @brief Remove a key/value pair | ||
| 396 | 396 | */ | |
| 397 | 397 | public void remove(String key) { | |
| 398 | 398 | removeIndex(index(key)); | |
@@ -463,7 +463,7 @@ public void sortKeys() { | |||
| 463 | 463 | ||
| 464 | 464 | /** | |
| 465 | 465 | * @webref floatdict:method | |
| 466 | - * @brief To come... | ||
| 466 | + * @brief Sort the keys alphabetially in reverse | ||
| 467 | 467 | */ | |
| 468 | 468 | public void sortKeysReverse() { | |
| 469 | 469 | sortImpl(true, true); | |
@@ -484,7 +484,7 @@ public void sortKeysReverse() { | |||
| 484 | 484 | * Sort by values in descending order (largest value will be at [0]). | |
| 485 | 485 | * | |
| 486 | 486 | * @webref floatdict:method | |
| 487 | - * @brief Sort by values in descending order | ||
| 487 | + * @brief Sort by values in ascending order | ||
| 488 | 488 | */ | |
| 489 | 489 | public void sortValues() { | |
| 490 | 490 | sortImpl(false, false); | |
@@ -499,7 +499,7 @@ public void sortValues() { | |||
| 499 | 499 | ||
| 500 | 500 | /** | |
| 501 | 501 | * @webref floatdict:method | |
| 502 | - * @brief To come... | ||
| 502 | + * @brief Sort by values in descending order | ||
| 503 | 503 | */ | |
| 504 | 504 | public void sortValuesReverse() { | |
| 505 | 505 | sortImpl(false, true); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -201,7 +201,7 @@ public int value(int index) { | |||
| 201 | 201 | ||
| 202 | 202 | /** | |
| 203 | 203 | * @webref intdict:method | |
| 204 | - * @brief To come... | ||
| 204 | + * @brief Return the internal array being used to store the keys | ||
| 205 | 205 | */ | |
| 206 | 206 | public Iterable<Integer> values() { | |
| 207 | 207 | return new Iterable<Integer>() { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -77,7 +77,7 @@ public StringDict(String[] keys, String[] values) { | |||
| 77 | 77 | ||
| 78 | 78 | /** | |
| 79 | 79 | * @webref stringdict:method | |
| 80 | - * @brief To come... | ||
| 80 | + * @brief Returns the number of key/value pairs | ||
| 81 | 81 | */ | |
| 82 | 82 | public int size() { | |
| 83 | 83 | return count; | |
@@ -120,7 +120,7 @@ protected void crop() { | |||
| 120 | 120 | ||
| 121 | 121 | /** | |
| 122 | 122 | * @webref stringdict:method | |
| 123 | - * @brief To come... | ||
| 123 | + * @brief Return the internal array being used to store the keys | ||
| 124 | 124 | */ | |
| 125 | 125 | public Iterable<String> keys() { | |
| 126 | 126 | return new Iterable<String>() { | |
@@ -173,7 +173,7 @@ public String value(int index) { | |||
| 173 | 173 | ||
| 174 | 174 | /** | |
| 175 | 175 | * @webref stringdict:method | |
| 176 | - * @brief To come... | ||
| 176 | + * @brief Return the internal array being used to store the values | ||
| 177 | 177 | */ | |
| 178 | 178 | public Iterable<String> values() { | |
| 179 | 179 | return new Iterable<String>() { | |
@@ -206,7 +206,7 @@ public boolean hasNext() { | |||
| 206 | 206 | * @webref stringdict:method | |
| 207 | 207 | * @brief Create a new array and copy each of the values into it | |
| 208 | 208 | */ | |
| 209 | - public int[] valueArray() { | ||
| 209 | + public String[] valueArray() { | ||
| 210 | 210 | return valueArray(null); | |
| 211 | 211 | } | |
| 212 | 212 | ||
@@ -216,9 +216,9 @@ public int[] valueArray() { | |||
| 216 | 216 | * creating a new array each time). If 'array' is null, or not the same | |
| 217 | 217 | * size as the number of values, a new array will be allocated and returned. | |
| 218 | 218 | */ | |
| 219 | - public int[] valueArray(int[] array) { | ||
| 219 | + public String[] valueArray(String[] array) { | ||
| 220 | 220 | if (array == null || array.length != size()) { | |
| 221 | - array = new int[count]; | ||
| 221 | + array = new String[count]; | ||
| 222 | 222 | } | |
| 223 | 223 | System.arraycopy(values, 0, array, 0, count); | |
| 224 | 224 | return array; | |
@@ -239,7 +239,7 @@ public String get(String key) { | |||
| 239 | 239 | ||
| 240 | 240 | /** | |
| 241 | 241 | * @webref stringdict:method | |
| 242 | - * @brief To come... | ||
| 242 | + * @brief Create a new key/value pair or change the value of one | ||
| 243 | 243 | */ | |
| 244 | 244 | public void set(String key, String amount) { | |
| 245 | 245 | int index = index(key); | |
@@ -258,7 +258,7 @@ public int index(String what) { | |||
| 258 | 258 | ||
| 259 | 259 | /** | |
| 260 | 260 | * @webref stringdict:method | |
| 261 | - * @brief To come... | ||
| 261 | + * @brief Check if a key is a part of the data structure | ||
| 262 | 262 | */ | |
| 263 | 263 | public boolean hasKey(String key) { | |
| 264 | 264 | return index(key) != -1; | |
@@ -278,7 +278,7 @@ protected void create(String key, String value) { | |||
| 278 | 278 | ||
| 279 | 279 | /** | |
| 280 | 280 | * @webref stringdict:method | |
| 281 | - * @brief To come... | ||
| 281 | + * @brief Remove a key/value pair | ||
| 282 | 282 | */ | |
| 283 | 283 | public void remove(String key) { | |
| 284 | 284 | removeIndex(index(key)); | |
@@ -325,7 +325,7 @@ public void sortKeys() { | |||
| 325 | 325 | ||
| 326 | 326 | /** | |
| 327 | 327 | * @webref stringdict:method | |
| 328 | - * @brief To come... | ||
| 328 | + * @brief Sort the keys alphabetially in reverse | ||
| 329 | 329 | */ | |
| 330 | 330 | public void sortKeysReverse() { | |
| 331 | 331 | sortImpl(true, true); | |
@@ -336,7 +336,7 @@ public void sortKeysReverse() { | |||
| 336 | 336 | * Sort by values in descending order (largest value will be at [0]). | |
| 337 | 337 | * | |
| 338 | 338 | * @webref stringdict:method | |
| 339 | - * @brief Sort by values in descending order | ||
| 339 | + * @brief Sort by values in ascending order | ||
| 340 | 340 | */ | |
| 341 | 341 | public void sortValues() { | |
| 342 | 342 | sortImpl(false, false); | |
@@ -345,7 +345,7 @@ public void sortValues() { | |||
| 345 | 345 | ||
| 346 | 346 | /** | |
| 347 | 347 | * @webref stringdict:method | |
| 348 | - * @brief To come... | ||
| 348 | + * @brief Sort by values in descending order | ||
| 349 | 349 | */ | |
| 350 | 350 | public void sortValuesReverse() { | |
| 351 | 351 | sortImpl(false, true); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments