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 Optional<TriFunction<Client,String,String,? extends NameValue>> |
getCreatorByName(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 Optional<TriFunction<Client,String,String,? extends NameValue>> |
registerCreator(String name,
AbstractNameValueProcessor.Creator<NameValue> creator)
Registers a creator to a name.
|
String |
toString() |
protected Optional<TriFunction<Client,String,String,? extends NameValue>> |
unregisterCreator(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()
@Nonnull protected final Optional<TriFunction<Client,String,String,? extends NameValue>> getCreatorByName(@Nonnull String name)
name
- name to find@Nonnull protected final Optional<TriFunction<Client,String,String,? extends NameValue>> registerCreator(@Nonnull String name, @Nonnull AbstractNameValueProcessor.Creator<NameValue> creator)
name
- namecreator
- creator@Nonnull protected final Optional<TriFunction<Client,String,String,? extends NameValue>> unregisterCreator(@Nonnull String name)
name
- nameCopyright © 2013–2019 Kitteh. All rights reserved.