Package com.jackmeng.core.util
Class use_Pool<T extends impl_Identifiable>
java.lang.Object
com.jackmeng.core.util.use_Pool<T>
- All Implemented Interfaces:
Iterable<T>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate impl_Guard<T>
private final List<impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>,
Optional<T>>>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addPoolObject
(T object) void
addRefreshable
(impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>, Optional<T>>> content) boolean
contains_objOf_T
(Class<? extends T> e) expose()
boolean
iterator()
private void
notifyRefreshers
(const_GeneralStatus type, use_Struct.struct_Pair<Optional<String>, Optional<T>> removed) objs()
void
removePoolObj
(T e) void
void
removeRefreshable
(impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>, Optional<T>>> content) void
setGuard
(impl_Guard<T> e) void
setRefreshableGuard
(impl_Guard<impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>, Optional<T>>>> e) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
poolObjects
-
refreshables
private final List<impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>,Optional<T extends impl_Identifiable>>>> refreshables -
guards
private impl_Guard<impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>,Optional<T extends impl_Identifiable>>>> guards -
guards2
-
-
Constructor Details
-
use_Pool
public use_Pool()
-
-
Method Details
-
removeRefreshable
public void removeRefreshable(impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>, Optional<T>>> content) - Parameters:
content
-
-
addRefreshable
public void addRefreshable(impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>, Optional<T>>> content) - Parameters:
content
-
-
setRefreshableGuard
public void setRefreshableGuard(impl_Guard<impl_HalcyonRefreshable<use_Struct.struct_Pair<Optional<String>, Optional<T>>>> e) -
setGuard
-
addPoolObject
- Parameters:
object
-
-
removePoolObject_ID
- Parameters:
id
-
-
removePoolObj
-
objOf_T
-
hasObj
-
contains_objOf_T
-
objs
- Returns:
- Set:String
-
expose
- Returns:
- Map:[String, T]
-
get
- Parameters:
id
-- Returns:
- T
-
notifyRefreshers
private void notifyRefreshers(const_GeneralStatus type, use_Struct.struct_Pair<Optional<String>, Optional<T>> removed) - Parameters:
removed
-
-
toString
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends impl_Identifiable>
-