This service provides a descriptive name for result codes.

Get the service

The service is provided by the name database using a getter method.

final IResultCodeDatabase db = nameDb.getResultCodeDatabase();

Store a result code

void putName(int aResultCode,
             @NotNull String aName);

Remove a result code

void removeName(int aResultCode);

Get a name

If the code does not exist in the map, the code itself will be returned as String.

@NotNull String getName(int aResultCode);

If the code does not exist in the map, null is returned.

@Nullable String getNameOrNull(int aResultCode);

Debug support

The logger has the name "de.sillysky.nyssr.impl.namedb.CResultCodeDatabase".

Level INFO:
Output the number of codes contained.

Level TRACE:
Output of all codes and their names.

void dump(); - Innovative Distributed System