Package net.dv8tion.jda.api.utils.cache
Interface SortedChannelCacheView<T extends Channel & Comparable<? super T>>
- Type Parameters:
T- The channel type
- All Superinterfaces:
CacheView<T>,ChannelCacheView<T>,Iterable<T>,SnowflakeCacheView<T>,SortedSnowflakeCacheView<T>
public interface SortedChannelCacheView<T extends Channel & Comparable<? super T>>
extends ChannelCacheView<T>, SortedSnowflakeCacheView<T>
Specialized
Sorting is done with respect to the positioning in the official Discord client, by comparing positions and category information.
ChannelCacheView type used for handling sorted lists of channels.
Sorting is done with respect to the positioning in the official Discord client, by comparing positions and category information.
Internally, this cache view makes a distinction between the varying ChannelTypes and provides convenient methods to access a filtered subset.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.dv8tion.jda.api.utils.cache.CacheView
CacheView.SimpleCacheView<T> -
Method Summary
Modifier and TypeMethodDescription<C extends T>
SortedChannelCacheView<C>Creates a decorator around this cache, filtered to only provide access to the given type.Methods inherited from interface net.dv8tion.jda.api.utils.cache.CacheView
acceptStream, applyStream, asList, collect, getElementsByName, getElementsByName, isEmpty, lockedIterator, parallelStream, size, streamMethods inherited from interface net.dv8tion.jda.api.utils.cache.ChannelCacheView
getElementById, getElementByIdMethods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface net.dv8tion.jda.api.utils.cache.SnowflakeCacheView
getElementById, getElementByIdMethods inherited from interface net.dv8tion.jda.api.utils.cache.SortedSnowflakeCacheView
asSet, forEachUnordered, parallelStreamUnordered, streamUnordered
-
Method Details
-
ofType
Description copied from interface:ChannelCacheViewCreates a decorator around this cache, filtered to only provide access to the given type.- Specified by:
ofTypein interfaceChannelCacheView<T extends Channel & Comparable<? super T>>- Type Parameters:
C- The type parameter- Parameters:
type- The type class (LikeTextChannel.class)- Returns:
- The filtered cache view
-