Package org.hyperledger.aries.api.server
Class AdminConfig
- java.lang.Object
-
- org.hyperledger.aries.api.server.AdminConfig
-
public class AdminConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static TypeCOLLECTION_TYPE
-
Constructor Summary
Constructors Constructor Description AdminConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanEqual(Object other)booleanequals(Object o)<T> Optional<T>getAs(@NonNull String key, @NonNull Type type)Get a config valueMap<String,com.google.gson.JsonElement>getConfig()<T> TgetUnwrapped(@NonNull String key, @NonNull Type type)Get a config valueinthashCode()voidsetConfig(Map<String,com.google.gson.JsonElement> config)StringtoString()
-
-
-
Field Detail
-
COLLECTION_TYPE
public static final Type COLLECTION_TYPE
-
-
Method Detail
-
getAs
public <T> Optional<T> getAs(@NonNull @NonNull String key, @NonNull @NonNull Type type)
Get a config value- Type Parameters:
T- – the type of the desired result object- Parameters:
key- the config key e.g. debug.auto_accept_invitestype- the desired return type- Returns:
- the value or an empty optional if the key was not found or conversion failed
-
getUnwrapped
public <T> T getUnwrapped(@NonNull @NonNull String key, @NonNull @NonNull Type type)Get a config value- Type Parameters:
T- – the type of the desired result object- Parameters:
key- the config key e.g. debug.auto_accept_invitestype- the desired return type- Returns:
- the value or null if the key was not found or conversion failed
-
canEqual
protected boolean canEqual(Object other)
-
-