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 SummaryNested classes/interfaces inherited from interface net.dv8tion.jda.api.utils.cache.CacheViewCacheView.SimpleCacheView<T>
- 
Method SummaryModifier 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.CacheViewacceptStream, applyStream, asList, collect, getElementsByName, getElementsByName, isEmpty, lockedIterator, parallelStream, size, streamMethods inherited from interface net.dv8tion.jda.api.utils.cache.ChannelCacheViewgetElementById, getElementByIdMethods inherited from interface java.lang.IterableforEach, iterator, spliteratorMethods inherited from interface net.dv8tion.jda.api.utils.cache.SnowflakeCacheViewgetElementById, getElementByIdMethods inherited from interface net.dv8tion.jda.api.utils.cache.SortedSnowflakeCacheViewasSet, forEachUnordered, parallelStreamUnordered, streamUnordered
- 
Method Details- 
ofTypeDescription copied from interface:ChannelCacheViewCreates a decorator around this cache, filtered to only provide access to the given type.- Specified by:
- ofTypein interface- ChannelCacheView<T extends Channel & Comparable<? super T>>
- Type Parameters:
- C- The type parameter
- Parameters:
- type- The type class (Like- TextChannel.class)
- Returns:
- The filtered cache view
 
 
-