NameValue - type of pairpublic abstract class AbstractNameValueProcessor<NameValue> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractNameValueProcessor.Creator<NameValue>
A creator of name/value pairs of a particular type.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNameValueProcessor(Client.WithManagement client)
Constructs the processor.
|
| Modifier and Type | Method and Description |
|---|---|
Client.WithManagement |
getClient()
Gets the Client for which this processor functions.
|
protected @NonNull Optional<TriFunction<Client,String,String,? extends NameValue>> |
getCreatorByName(@NonNull String name)
Gets a registered creator function by registered name.
|
protected Map<String,AbstractNameValueProcessor.Creator<NameValue>> |
getRegistrations()
Gets the actual registrations map, for manipulation.
|
protected @NonNull Optional<TriFunction<Client,String,String,? extends NameValue>> |
registerCreator(@NonNull String name,
@NonNull AbstractNameValueProcessor.Creator<NameValue> creator)
Registers a creator to a name.
|
@NonNull String |
toString() |
protected @NonNull Optional<TriFunction<Client,String,String,? extends NameValue>> |
unregisterCreator(@NonNull String name)
Removes registration of a creator to a name.
|
protected AbstractNameValueProcessor(Client.WithManagement client)
client - client this will be used forpublic Client.WithManagement getClient()
protected final Map<String,AbstractNameValueProcessor.Creator<NameValue>> getRegistrations()
protected final @NonNull Optional<TriFunction<Client,String,String,? extends NameValue>> getCreatorByName(@NonNull String name)
name - name to findprotected final @NonNull Optional<TriFunction<Client,String,String,? extends NameValue>> registerCreator(@NonNull String name, @NonNull AbstractNameValueProcessor.Creator<NameValue> creator)
name - namecreator - creatorprotected final @NonNull Optional<TriFunction<Client,String,String,? extends NameValue>> unregisterCreator(@NonNull String name)
name - nameCopyright © 2013–2021 Kitteh. All rights reserved.