T - The DAO typepublic class MapDaoRegister<T> extends AbstractDaoRegister<T>
A MapDaoRegister can be created via the static newInstance(Map) method
or via the MapDaoRegister.Builder object. The Builder object can be created via it's constructor
or the static builder() or builder(Map) methods.
| Modifier and Type | Class and Description |
|---|---|
static class |
MapDaoRegister.Builder<T>
Builds a MapDaoRegister object.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> MapDaoRegister.Builder<T> |
builder()
Creates a Builder object that can build a
MapDaoRegister |
static <T> MapDaoRegister.Builder<T> |
builder(Map<String,? extends T> map)
Creates a Builder object that can build a
MapDaoRegister. |
boolean |
containsDAO(T dao) |
boolean |
containsKey(String key) |
boolean |
equals(Object obj) |
Map<String,T> |
getAll()
Returns a clone of the underlying map.
|
T |
getDao(String key)
Returns the DAO with the specified name.
|
int |
hashCode() |
static <T> MapDaoRegister<T> |
newInstance(Map<String,? extends T> map)
Creates a new
MapDaoRegister and fills it with the provided map. |
int |
size() |
String |
toString() |
getDefaultDao, returnDaopublic static <T> MapDaoRegister<T> newInstance(Map<String,? extends T> map)
MapDaoRegister and fills it with the provided map.T - the type of the DAOmap - the map that fills the new MapDaoRegisterMapDaoRegisterpublic static <T> MapDaoRegister.Builder<T> builder()
MapDaoRegisterT - The type of the DAOpublic static <T> MapDaoRegister.Builder<T> builder(Map<String,? extends T> map)
MapDaoRegister.
The builder will be instantiated with the provided map.T - The type of the DAOmap - The map that is added to the builderpublic boolean containsKey(String key)
public boolean containsDAO(T dao)
public T getDao(String key)
DaoRegistergetDao in interface DaoRegister<T>getDao in class AbstractDaoRegister<T>key - the name of the DAOpublic int size()
Copyright © 2020. All rights reserved.