• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

コミットメタ情報

リビジョン0be3ba94aeb3fecd1c4c09deb3e95c154e8f2457 (tree)
日時2021-09-09 13:53:30
作者Nathan Sweet <nathan.sweet@gmai...>
コミッターNathan Sweet

ログメッセージ

Better ObjectSet#add javadocs.

変更サマリ

差分

--- a/gdx/src/com/badlogic/gdx/utils/IntSet.java
+++ b/gdx/src/com/badlogic/gdx/utils/IntSet.java
@@ -126,7 +126,7 @@ public class IntSet {
126126 }
127127 }
128128
129- /** Returns true if the key was not already in the set. */
129+ /** Returns true if the key was added to the set or false if it was already in the set. */
130130 public boolean add (int key) {
131131 if (key == 0) {
132132 if (hasZeroValue) return false;
--- a/gdx/src/com/badlogic/gdx/utils/ObjectSet.java
+++ b/gdx/src/com/badlogic/gdx/utils/ObjectSet.java
@@ -127,8 +127,8 @@ public class ObjectSet<T> implements Iterable<T> {
127127 }
128128 }
129129
130- /** Returns true if the key was not already in the set. If this set already contains the key, the call leaves the set unchanged
131- * and returns false. */
130+ /** Returns true if the key was added to the set or false if it was already in the set. If this set already contains the key,
131+ * the call leaves the set unchanged and returns false. */
132132 public boolean add (T key) {
133133 int i = locateKey(key);
134134 if (i >= 0) return false; // Existing key was found.
--- a/gdx/src/com/badlogic/gdx/utils/OrderedSet.java
+++ b/gdx/src/com/badlogic/gdx/utils/OrderedSet.java
@@ -69,8 +69,8 @@ public class OrderedSet<T> extends ObjectSet<T> {
6969 return true;
7070 }
7171
72- /** Sets the key at the specfied index. Returns true if the key was not already in the set. If this set already contains the
73- * key, the existing key's index is changed if needed and false is returned. */
72+ /** Sets the key at the specfied index. Returns true if the key was added to the set or false if it was already in the set. If
73+ * this set already contains the key, the existing key's index is changed if needed and false is returned. */
7474 public boolean add (T key, int index) {
7575 if (!super.add(key)) {
7676 int oldIndex = items.indexOf(key, true);