Class UnifiedCacheViewImpl.UnifiedSnowflakeCacheView<T extends ISnowflake>
java.lang.Object
net.dv8tion.jda.internal.utils.cache.UnifiedCacheViewImpl<T,SnowflakeCacheView<T>>
net.dv8tion.jda.internal.utils.cache.UnifiedCacheViewImpl.UnifiedSnowflakeCacheView<T>
- All Implemented Interfaces:
Iterable<T>
,CacheView<T>
,SnowflakeCacheView<T>
- Enclosing class:
UnifiedCacheViewImpl<T,
E extends CacheView<T>>
public static class UnifiedCacheViewImpl.UnifiedSnowflakeCacheView<T extends ISnowflake>
extends UnifiedCacheViewImpl<T,SnowflakeCacheView<T>>
implements SnowflakeCacheView<T>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.dv8tion.jda.internal.utils.cache.UnifiedCacheViewImpl
UnifiedCacheViewImpl.UnifiedMemberCacheViewImpl, UnifiedCacheViewImpl.UnifiedSnowflakeCacheView<T extends ISnowflake>
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.utils.cache.CacheView
CacheView.SimpleCacheView<T>
-
Constructor Summary
ConstructorsConstructorDescriptionUnifiedSnowflakeCacheView
(Supplier<? extends Stream<? extends SnowflakeCacheView<T>>> generator) -
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.UnifiedCacheViewImpl
asList, asSet, forEach, getElementsByName, isEmpty, iterator, lockedIterator, parallelStream, size, stream
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
UnifiedSnowflakeCacheView
public UnifiedSnowflakeCacheView(Supplier<? extends Stream<? extends SnowflakeCacheView<T>>> generator)
-
-
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
-