Module inet.ipaddr
Package inet.ipaddr.format.util
Class AddressTrieMap.EntrySet<K extends Address,V>
- All Implemented Interfaces:
Serializable
,Iterable<Map.Entry<K,
,V>> Collection<Map.Entry<K,
,V>> Set<Map.Entry<K,
V>>
- Enclosing class:
AddressTrieMap<K extends Address,
V>
public static class AddressTrieMap.EntrySet<K extends Address,V>
extends AbstractSet<Map.Entry<K,V>>
implements Serializable
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionIterates from largest prefix blocks to smallest to individual addresses.void
clear()
Returns an iterator that visits contained addresses and subnet blocks before their containing subnet blocks.Returns an iterator that visits containing subnet blocks before their contained addresses and subnet blocks.boolean
boolean
int
hashCode()
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> collection) int
size()
Methods inherited from class java.util.AbstractCollection
add, addAll, containsAll, retainAll, toArray, toArray, toString
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Method Details
-
iterator
-
containingFirstIterator
Returns an iterator that visits containing subnet blocks before their contained addresses and subnet blocks. -
containedFirstIterator
Returns an iterator that visits contained addresses and subnet blocks before their containing subnet blocks.- Returns:
-
blockSizeIterator
Iterates from largest prefix blocks to smallest to individual addresses.- Returns:
-
spliterator
- Specified by:
spliterator
in interfaceCollection<K extends Address>
- Specified by:
spliterator
in interfaceIterable<K extends Address>
- Specified by:
spliterator
in interfaceSet<K extends Address>
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
remove
-
clear
public void clear() -
hashCode
public int hashCode() -
equals
-
removeAll
-