CidrAddress instances for matching.
| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private final AtomicReference | |
| private static final CidrAddressTable. |
| Access | Constructor and Description |
|---|---|
| public | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public CidrAddressTable | Returns: an atomic clone of this tableOverrides java. Returns an atomic clone of this table. |
| private int | |
| private CidrAddressTable. | |
| private T | doPut(final CidrAddress block, final T expect, final T update, final boolean putIfAbsent, final boolean putIfPresent)
|
| private static <T> CidrAddressTable. | |
| public T | Returns: the value which best matches the given address, ornull if none matchthe address to match (must not be address)null)Returns the value which best matches the given address, or |
| public T | Returns: the value which best matches the given address, ordefVal if none matchthe address to match (must not be address, T null)the default value to return defVal)Returns the value which best matches the given address, or |
| public boolean | Returns: true if the table is empty, or false otherwiseReturns |
| public Iterator | |
| public T | Returns: the previous mapping, if any, or elsenullthe address block (must not be block, T null)the value for the mapping (must not be value)null)Add a mapping for the given block. |
| public T | Returns: the existing mapping, if any, or elsenull if the addition succeededthe address block (must not be block, T null)the value for the mapping (must not be value)null)Add a mapping for the given block if one is not already present. |
| public T | Returns: the removed mapping value, if any, or elsenull if the value was not removedthe address block (must not be block)null)Remove a mapping for a specific address block. |
| public boolean | Returns: true if the mapping was removed, or false if it was not removedthe address block (must not be block, T null)the expected value expect)Remove a mapping for a specific address block if its value is the expected value. |
| public T | Returns: the previous mapping, if any, or elsenull if the value was not replacedthe address block (must not be block, T null)the new value for the mapping (must not be value)null)Replace a mapping for the given block if one is already present. |
| public boolean | Returns: true if the mapping was replaced, or false if it was not replacedthe address block (must not be block, T null)the expected value for the mapping (must not be expect, T null)the new value for the mapping (must not be update)null)Replace a mapping for the given block if one is already present with the given expected value. |
| public int | |
| public Spliterator | spliterator()
Overrides default java. Creates a |
| public String |
| mappingsRef | back to summary |
|---|---|
| private final AtomicReference<CidrAddressTable. | |
| NO_MAPPINGS | back to summary |
|---|---|
private static final CidrAddressTable.
| |
| CidrAddressTable | back to summary |
|---|---|
| public CidrAddressTable() Construct a new instance. | |
| CidrAddressTable | back to summary |
|---|---|
| private CidrAddressTable(CidrAddressTable. | |
| clear | back to summary |
|---|---|
| public void clear() Remove all mappings from this table. | |
| clone | back to summary |
|---|---|
| public CidrAddressTable Overrides java. Returns an atomic clone of this table.
| |
| doFind | back to summary |
|---|---|
| private int doFind(CidrAddressTable. | |
| doGet | back to summary |
|---|---|
| private CidrAddressTable. | |
| doPut | back to summary |
|---|---|
| private T doPut(final CidrAddress block, final T expect, final T update, final boolean putIfAbsent, final boolean putIfPresent) | |
| empty | back to summary |
|---|---|
private static <T> CidrAddressTable.
| |
| get | back to summary |
|---|---|
| public T get(InetAddress address) Returns the value which best matches the given address, or
| |
| getOrDefault | back to summary |
|---|---|
| public T getOrDefault(InetAddress address, T defVal) Returns the value which best matches the given address, or
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns
| |
| iterator | back to summary |
|---|---|
| public Iterator Implements java. Doc from java. Returns an iterator over elements of type
| |
| put | back to summary |
|---|---|
| public T put(CidrAddress block, T value) Add a mapping for the given block.
| |
| putIfAbsent | back to summary |
|---|---|
| public T putIfAbsent(CidrAddress block, T value) Add a mapping for the given block if one is not already present.
| |
| removeExact | back to summary |
|---|---|
| public T removeExact(CidrAddress block) Remove a mapping for a specific address block.
| |
| removeExact | back to summary |
|---|---|
| public boolean removeExact(CidrAddress block, T expect) Remove a mapping for a specific address block if its value is the expected value.
| |
| replaceExact | back to summary |
|---|---|
| public T replaceExact(CidrAddress block, T value) Replace a mapping for the given block if one is already present.
| |
| replaceExact | back to summary |
|---|---|
| public boolean replaceExact(CidrAddress block, T expect, T update) Replace a mapping for the given block if one is already present with the given expected value.
| |
| size | back to summary |
|---|---|
| public int size() Returns the number of mappings in this table.
| |
| spliterator | back to summary |
|---|---|
| public Spliterator Overrides default java. Doc from java. Creates a
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final CidrAddressTable. | |
| pack-priv final CidrAddress | |
| pack-priv final T |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public CidrAddressTable. | Returns: the parent of this entry, ornull if there is no parentGet the parent of this entry, if any. |
| public CidrAddress | |
| public T | |
| pack-priv CidrAddressTable. |
| parent | back to summary |
|---|---|
| pack-priv final CidrAddressTable. | |
| range | back to summary |
|---|---|
| pack-priv final CidrAddress range | |
| value | back to summary |
|---|---|
| pack-priv final T value | |
| Mapping | back to summary |
|---|---|
| pack-priv Mapping(final CidrAddress range, final T value, final CidrAddressTable. | |
| getParent | back to summary |
|---|---|
| public CidrAddressTable. Get the parent of this entry, if any.
| |
| getRange | back to summary |
|---|---|
| public CidrAddress getRange() Get the address range of this entry.
| |
| getValue | back to summary |
|---|---|
| public T getValue() Get the stored value of this entry.
| |
| withNewParent | back to summary |
|---|---|
| pack-priv CidrAddressTable. | |