OSDN Git Service

more javadocs
authorJon Renner <rennerjc@gmail.com>
Tue, 1 Oct 2013 13:13:36 +0000 (21:13 +0800)
committerJon Renner <rennerjc@gmail.com>
Tue, 1 Oct 2013 13:13:36 +0000 (21:13 +0800)
gdx/src/com/badlogic/gdx/utils/Array.java

index 45628d8..8209a87 100644 (file)
@@ -336,33 +336,33 @@ public class Array<T> implements Iterable<T> {
        }\r
 \r
        /** Selects the nth-lowest element from the Array according to Comparator ranking.\r
-        * This might partially sort the Array, affecting draw order for drawn elements.\r
+        * This might partially sort the Array.\r
         * @see Select\r
         * @param comparator used for comparison\r
-        * @param nth_lowest rank of desired object according to comparison,\r
+        * @param nthLowest rank of desired object according to comparison,\r
         * n is based on ordinal numbers, not array indices.\r
         * for min value use 1, for max value use size of array, using 0 results in runtime exception.\r
         * @return the value of the Nth lowest ranked object.\r
         */\r
-       public T selectRanked(Comparator<T> comparator, int nth_lowest) {\r
-               if (nth_lowest < 1) {\r
+       public T selectRanked(Comparator<T> comparator, int nthLowest) {\r
+               if (nthLowest < 1) {\r
                        throw new GdxRuntimeException("nth_lowest must be greater than 0, 1 = first, 2 = second...");\r
                }\r
-               return Select.instance().select(items, comparator, nth_lowest, size);\r
+               return Select.instance().select(items, comparator, nthLowest, size);\r
        }\r
 \r
        /** @see Array#selectRanked(java.util.Comparator, int)\r
        * @param comparator used for comparison\r
-        * @param nth_lowest rank of desired object according to comparison,\r
+        * @param nthLowest rank of desired object according to comparison,\r
         * n is based on ordinal numbers, not array indices.\r
         * for min value use 1, for max value use size of array, using 0 results in runtime exception.\r
         * @return the index of the Nth lowest ranked object.\r
         */\r
-       public int selectRankedIndex(Comparator<T> comparator, int nth_lowest) {\r
-               if (nth_lowest < 1) {\r
+       public int selectRankedIndex(Comparator<T> comparator, int nthLowest) {\r
+               if (nthLowest < 1) {\r
                        throw new GdxRuntimeException("nth_lowest must be greater than 0, 1 = first, 2 = second...");\r
                }\r
-               return Select.instance().selectIndex(items, comparator, nth_lowest, size);\r
+               return Select.instance().selectIndex(items, comparator, nthLowest, size);\r
        }\r
 \r
        public void reverse () {\r