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.internal.utils.cache.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.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 class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SimpleCacheView

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