Class CacheView.SimpleCacheView<T>

  • Type Parameters:
    T - The type this should cache
    All Implemented Interfaces:
    java.lang.Iterable<T>, CacheView<T>
    Enclosing interface:
    CacheView<T>

    public static class CacheView.SimpleCacheView<T>
    extends net.dv8tion.jda.core.utils.cache.impl.AbstractCacheView<T>
    Basic implementation of CacheView interface.
    Using TLongObjectMap to cache entities!
    • Constructor Summary

      Constructors 
      Constructor Description
      SimpleCacheView​(java.lang.Class<T> type, java.util.function.Function<T,​java.lang.String> nameMapper)  
    • Method Summary

      • Methods inherited from class net.dv8tion.jda.core.utils.cache.impl.AbstractCacheView

        asList, asSet, clear, getElementsByName, getMap, isEmpty, iterator, parallelStream, size, spliterator, stream
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach
    • Constructor Detail

      • SimpleCacheView

        public SimpleCacheView​(java.lang.Class<T> type,
                               java.util.function.Function<T,​java.lang.String> nameMapper)