Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1432,10 +1432,13 @@ public Set<Map.Entry<K, V>> entrySet() {
/**
* Returns the first entry the {@link org.apache.commons.collections4.Trie} is storing.
* <p>
* This is implemented by going always to the left until
* we encounter a valid uplink. That uplink is the first key.
* This is implemented by going always to the left until we encounter a valid uplink. That uplink is the first key.
* </p>
*
* @return the first entry the {@link org.apache.commons.collections4.Trie} is storing.
* @since 4.6.0
*/
TrieEntry<K, V> firstEntry() {
public TrieEntry<K, V> firstEntry() {
// if Trie is empty, no first node.
if (isEmpty()) {
return null;
Expand Down Expand Up @@ -1715,10 +1718,14 @@ public Set<K> keySet() {
/**
* Returns the last entry the {@link org.apache.commons.collections4.Trie} is storing.
*
* <p>This is implemented by going always to the right until
* we encounter a valid uplink. That uplink is the last key.
* <p>
* This is implemented by going always to the right until we encounter a valid uplink. That uplink is the last key.
* </p>
*
* @return the last entry the {@link org.apache.commons.collections4.Trie} is storing.
* @since 4.6.0
*/
TrieEntry<K, V> lastEntry() {
public TrieEntry<K, V> lastEntry() {
return followRight(root.left);
}

Expand Down
Loading