Class SnowflakeCacheViewImpl<T extends ISnowflake>
java.lang.Object
net.dv8tion.jda.internal.utils.cache.ReadWriteLockCache<T>
net.dv8tion.jda.internal.utils.cache.AbstractCacheView<T>
net.dv8tion.jda.internal.utils.cache.SnowflakeCacheViewImpl<T>
- All Implemented Interfaces:
Iterable<T>
,CacheView<T>
,SnowflakeCacheView<T>
- Direct Known Subclasses:
MemberCacheViewImpl
,SortedSnowflakeCacheViewImpl
public class SnowflakeCacheViewImpl<T extends ISnowflake>
extends AbstractCacheView<T>
implements SnowflakeCacheView<T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.utils.cache.CacheView
CacheView.SimpleCacheView<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetElementById
(long id) Retrieves the entity represented by the provided ID.Methods inherited from class net.dv8tion.jda.internal.utils.cache.AbstractCacheView
asList, asSet, clear, equals, forEach, get, getElementsByName, getMap, hashCode, isEmpty, iterator, keySet, lockedIterator, parallelStream, remove, size, spliterator, stream, toString
Methods inherited from class net.dv8tion.jda.internal.utils.cache.ReadWriteLockCache
clearCachedLists, readLock, writeLock
Methods inherited from interface net.dv8tion.jda.api.utils.cache.CacheView
acceptStream, applyStream, asList, asSet, collect, forEachUnordered, getElementsByName, getElementsByName, isEmpty, lockedIterator, parallelStream, size, stream
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface net.dv8tion.jda.api.utils.cache.SnowflakeCacheView
getElementById
-
Constructor Details
-
SnowflakeCacheViewImpl
-
-
Method Details
-
getElementById
Description copied from interface:SnowflakeCacheView
Retrieves the entity represented by the provided ID.- Specified by:
getElementById
in interfaceSnowflakeCacheView<T extends ISnowflake>
- Parameters:
id
- The ID of the entity- Returns:
- Possibly-null entity for the specified ID
-