ITargetAddressDatabase
This service provides a descriptive name for target addresses.
Get the service
The service is provided by the name database using a getter method.
final ITargetAddressDatabase db = nameDb.getTargetAddressDatabase();
Store a target address
void putName(@NotNull CTargetAddress aAddress, @NotNull String aName);
Remove a target address
void removeName(@NotNull CTargetAddress aAddress);
Get a name
If the target address does not exist in the map, the address itself will be returned as String.
@NotNull String getName(@NotNull CTargetAddress aTargetAddress);
If the target address does not exist in the map, null
is returned.
@Nullable String getNameOrNull(@NotNull CTargetAddress aTargetAddress);
Debug support
The logger has the name "de.
Level INFO:
Output the number of addresses contained.
Level TRACE:
Output of all addresses and their names.
void dump();