Skip to content

Commit b4e7ff3

Browse files
committed
Javadoc
1 parent ce868cb commit b4e7ff3

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

src/main/java/org/apache/commons/collections4/map/LRUMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ public boolean isFull() {
360360
}
361361

362362
/**
363-
* Whether this LRUMap will scan until a removable entry is found when the
363+
* Tests whether this LRUMap will scan until a removable entry is found when the
364364
* map is full.
365365
*
366366
* @return true if this map scans

src/main/java/org/apache/commons/collections4/trie/AbstractPatriciaTrie.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,16 @@ protected boolean inToRange(final K key, final boolean forceInclusive) {
164164
}
165165

166166
/**
167-
* Whether or not the {@link #getFromKey()} is in the range.
167+
* Tests whether or not the {@link #getFromKey()} is in the range.
168+
*
169+
* @return whether or not the {@link #getFromKey()} is in the range.
168170
*/
169171
protected abstract boolean isFromInclusive();
170172

171173
/**
172-
* Whether or not the {@link #getToKey()} is in the range.
174+
* Tests whether or not the {@link #getToKey()} is in the range.
175+
*
176+
* @return whether or not the {@link #getToKey()} is in the range.
173177
*/
174178
protected abstract boolean isToInclusive();
175179

@@ -1013,9 +1017,7 @@ public TrieEntry(final K key, final V value, final int bitIndex) {
10131017
}
10141018

10151019
/**
1016-
* Whether the entry is storing a key.
1017-
* Only the root can potentially be empty, all other
1018-
* nodes must have a key.
1020+
* Tests whether the entry is storing a key. Only the root can potentially be empty, all other nodes must have a key.
10191021
*
10201022
* @return Whether the entry is storing a key
10211023
*/
@@ -1024,7 +1026,7 @@ public boolean isEmpty() {
10241026
}
10251027

10261028
/**
1027-
* Whether the left or right child is a loopback.
1029+
* Tests whether the left or right child is a loopback.
10281030
*
10291031
* @return Whether the left or right child is a loopback.
10301032
*/

src/test/java/org/apache/commons/collections4/iterators/AbstractIteratorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public abstract class AbstractIteratorTest<E> extends AbstractObjectTest {
6161
public abstract Iterator<E> makeObject();
6262

6363
/**
64-
* Whether or not we are testing an iterator that can be empty.
64+
* Tests whether or not we are testing an iterator that can be empty.
6565
* Default is true.
6666
*
6767
* @return true if Iterator can be empty
@@ -71,7 +71,7 @@ public boolean supportsEmptyIterator() {
7171
}
7272

7373
/**
74-
* Whether or not we are testing an iterator that can contain elements.
74+
* Tests whether or not we are testing an iterator that can contain elements.
7575
* Default is true.
7676
*
7777
* @return true if Iterator can be full
@@ -81,7 +81,7 @@ public boolean supportsFullIterator() {
8181
}
8282

8383
/**
84-
* Whether or not we are testing an iterator that supports remove().
84+
* Tests whether or not we are testing an iterator that supports remove().
8585
* Default is true.
8686
*
8787
* @return true if Iterator supports remove

src/test/java/org/apache/commons/collections4/iterators/AbstractListIteratorTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public E addSetValue() {
6666
public abstract ListIterator<E> makeObject();
6767

6868
/**
69-
* Whether or not we are testing an iterator that supports add().
69+
* Tests whether or not we are testing an iterator that supports add().
7070
* Default is true.
7171
*
7272
* @return true if Iterator supports add
@@ -76,7 +76,7 @@ public boolean supportsAdd() {
7676
}
7777

7878
/**
79-
* Whether or not we are testing an iterator that supports set().
79+
* Tests whether or not we are testing an iterator that supports set().
8080
* Default is true.
8181
*
8282
* @return true if Iterator supports set

src/test/java/org/apache/commons/collections4/iterators/AbstractMapIteratorTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public V[] addSetValues() {
7171
public abstract Map<K, V> getMap();
7272

7373
/**
74-
* Whether the get operation on the map structurally modifies the map,
74+
* Tests whether the get operation on the map structurally modifies the map,
7575
* such as with LRUMap. Default is false.
7676
*
7777
* @return true if the get method structurally modifies the map

0 commit comments

Comments
 (0)