Class YmlRepository<K,E extends RepositoryEntry<K>>
java.lang.Object
ru.cwcode.tkach.config.base.Config<YmlConfig>
ru.cwcode.tkach.config.jackson.yaml.YmlConfig
ru.cwcode.tkach.config.repository.yml.YmlRepository<K,E>
- All Implemented Interfaces:
Iterable<E>,Reloadable,Repository<K,E>
public class YmlRepository<K,E extends RepositoryEntry<K>>
extends YmlConfig
implements Repository<K,E>, Reloadable
-
Field Summary
Fields inherited from class ru.cwcode.tkach.config.base.Config
manager, saveAllEnabled -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class ru.cwcode.tkach.config.base.Config
name, onLoad, onUnload, save, save, saveAllEnabled, setManager, setName, setSaveAllEnabled, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface ru.cwcode.tkach.config.repository.Repository
copy, copyOf, get, getOrDefault, iterator, parallelStream, put, removeEntry, stream
-
Constructor Details
-
YmlRepository
public YmlRepository()
-
-
Method Details
-
map
-
getOrNull
- Specified by:
getOrNullin interfaceRepository<K,E extends RepositoryEntry<K>>
-
put
- Specified by:
putin interfaceRepository<K,E extends RepositoryEntry<K>>
-
remove
- Specified by:
removein interfaceRepository<K,E extends RepositoryEntry<K>>
-
list
- Specified by:
listin interfaceRepository<K,E extends RepositoryEntry<K>>
-
keys
- Specified by:
keysin interfaceRepository<K,E extends RepositoryEntry<K>>
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceRepository<K,E extends RepositoryEntry<K>>
-
reload
public boolean reload()- Specified by:
reloadin interfaceReloadable
-