Class SimpleCacheImpl.KeySet

  • All Implemented Interfaces:
    Iterable<K>, Collection<K>, Set<K>, CacheCollection<K>, CacheSet<K>, org.infinispan.commons.util.CloseableIteratorCollection<K>, org.infinispan.commons.util.CloseableIteratorSet<K>
    Enclosing class:
    SimpleCacheImpl<K,​V>

    protected class SimpleCacheImpl.KeySet
    extends org.infinispan.commons.util.CloseableIteratorSetAdapter<K>
    implements CacheSet<K>
    • Constructor Detail

      • KeySet

        public KeySet()
    • Method Detail

      • retainAll

        public boolean retainAll​(Collection<?> c)
        Specified by:
        retainAll in interface Collection<K>
        Specified by:
        retainAll in interface Set<K>
        Overrides:
        retainAll in class org.infinispan.commons.util.CloseableIteratorCollectionAdapter<K>
      • remove

        public boolean remove​(Object o)
        Specified by:
        remove in interface Collection<K>
        Specified by:
        remove in interface Set<K>
        Overrides:
        remove in class org.infinispan.commons.util.CloseableIteratorCollectionAdapter<K>
      • removeAll

        public boolean removeAll​(Collection<?> c)
        Specified by:
        removeAll in interface Collection<K>
        Specified by:
        removeAll in interface Set<K>
        Overrides:
        removeAll in class org.infinispan.commons.util.CloseableIteratorCollectionAdapter<K>
      • clear

        public void clear()
        Specified by:
        clear in interface Collection<K>
        Specified by:
        clear in interface Set<K>
        Overrides:
        clear in class org.infinispan.commons.util.CloseableIteratorCollectionAdapter<K>
      • iterator

        public org.infinispan.commons.util.CloseableIterator<K> iterator()
        Description copied from interface: org.infinispan.commons.util.CloseableIteratorCollection

        This iterator should be explicitly closed when iteration upon it is completed. Failure to do so could cause resources to not be freed properly

        Specified by:
        iterator in interface org.infinispan.commons.util.CloseableIteratorCollection<K>
        Specified by:
        iterator in interface Collection<K>
        Specified by:
        iterator in interface Iterable<K>
        Specified by:
        iterator in interface Set<K>
        Overrides:
        iterator in class org.infinispan.commons.util.CloseableIteratorCollectionAdapter<K>
      • spliterator

        public org.infinispan.commons.util.CloseableSpliterator<K> spliterator()
        Description copied from interface: org.infinispan.commons.util.CloseableIteratorCollection

        This spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly

        Specified by:
        spliterator in interface org.infinispan.commons.util.CloseableIteratorCollection<K>
        Specified by:
        spliterator in interface org.infinispan.commons.util.CloseableIteratorSet<K>
        Specified by:
        spliterator in interface Collection<K>
        Specified by:
        spliterator in interface Iterable<K>
        Specified by:
        spliterator in interface Set<K>
        Overrides:
        spliterator in class org.infinispan.commons.util.CloseableIteratorSetAdapter<K>
      • size

        public int size()
        Specified by:
        size in interface Collection<K>
        Specified by:
        size in interface Set<K>
        Overrides:
        size in class org.infinispan.commons.util.CloseableIteratorCollectionAdapter<K>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Collection<K>
        Specified by:
        isEmpty in interface Set<K>
        Overrides:
        isEmpty in class org.infinispan.commons.util.CloseableIteratorCollectionAdapter<K>
      • stream

        public CacheStream<K> stream()
        Description copied from interface: org.infinispan.commons.util.CloseableIteratorCollection

        This stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly

        Specified by:
        stream in interface CacheCollection<K>
        Specified by:
        stream in interface org.infinispan.commons.util.CloseableIteratorCollection<K>
        Specified by:
        stream in interface Collection<K>
      • parallelStream

        public CacheStream<K> parallelStream()
        Description copied from interface: org.infinispan.commons.util.CloseableIteratorCollection

        This stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly

        Specified by:
        parallelStream in interface CacheCollection<K>
        Specified by:
        parallelStream in interface org.infinispan.commons.util.CloseableIteratorCollection<K>
        Specified by:
        parallelStream in interface Collection<K>