Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for KeyIterator (0.07 sec)

  1. guava-tests/test/com/google/common/collect/MapsTransformValuesUnmodifiableIteratorTest.java

        assertFalse(underlying.containsKey("a"));
    
        Set<String> keys = map.keySet();
        keys.remove("b");
        assertFalse(underlying.containsKey("b"));
    
        Iterator<String> keyIterator = keys.iterator();
        keyIterator.next();
        keyIterator.remove();
        assertFalse(underlying.containsKey("c"));
    
        Collection<String> values = map.values();
        values.remove("4");
        assertFalse(underlying.containsKey("d"));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/AbstractMapsTransformValuesTest.java

        assertFalse(underlying.containsKey("a"));
    
        Set<String> keys = map.keySet();
        keys.remove("b");
        assertFalse(underlying.containsKey("b"));
    
        Iterator<String> keyIterator = keys.iterator();
        keyIterator.next();
        keyIterator.remove();
        assertFalse(underlying.containsKey("c"));
    
        Collection<String> values = map.values();
        values.remove("4");
        assertFalse(underlying.containsKey("d"));
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableEnumMap.java

      private ImmutableEnumMap(EnumMap<K, V> delegate) {
        this.delegate = delegate;
        checkArgument(!delegate.isEmpty());
      }
    
      @Override
      UnmodifiableIterator<K> keyIterator() {
        return Iterators.unmodifiableIterator(delegate.keySet().iterator());
      }
    
      @Override
      Spliterator<K> keySpliterator() {
        return delegate.keySet().spliterator();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

                        final Iterator<Entry<String, String>> keyIterator =
                                storage.entrySet().iterator();
    
                        public boolean hasNext() {
                            return keyIterator.hasNext();
                        }
    
                        public Entry<String, String> next() {
                            final Entry<String, String> entry = keyIterator.next();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableEnumMap.java

      private ImmutableEnumMap(EnumMap<K, V> delegate) {
        this.delegate = delegate;
        checkArgument(!delegate.isEmpty());
      }
    
      @Override
      UnmodifiableIterator<K> keyIterator() {
        return Iterators.unmodifiableIterator(delegate.keySet().iterator());
      }
    
      @Override
      public int size() {
        return delegate.size();
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/MapMakerInternalMap.java

        @Override
        public void remove() {
          checkRemove(lastReturned != null);
          MapMakerInternalMap.this.remove(lastReturned.getKey());
          lastReturned = null;
        }
      }
    
      final class KeyIterator extends HashIterator<K> {
    
        @Override
        public K next() {
          return nextEntry().getKey();
        }
      }
    
      final class ValueIterator extends HashIterator<V> {
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Maps.java

      static <V extends @Nullable Object> Function<Entry<?, V>, V> valueFunction() {
        return (Function) EntryFunction.VALUE;
      }
    
      static <K extends @Nullable Object, V extends @Nullable Object> Iterator<K> keyIterator(
          Iterator<Entry<K, V>> entryIterator) {
        return new TransformedIterator<Entry<K, V>, K>(entryIterator) {
          @Override
          @ParametricNullness
          K transform(Entry<K, V> entry) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 161.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Maps.java

      static <V extends @Nullable Object> Function<Entry<?, V>, V> valueFunction() {
        return (Function) EntryFunction.VALUE;
      }
    
      static <K extends @Nullable Object, V extends @Nullable Object> Iterator<K> keyIterator(
          Iterator<Entry<K, V>> entryIterator) {
        return new TransformedIterator<Entry<K, V>, K>(entryIterator) {
          @Override
          @ParametricNullness
          K transform(Entry<K, V> entry) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

        @Override
        public void remove() {
          checkRemove(lastReturned != null);
          MapMakerInternalMap.this.remove(lastReturned.getKey());
          lastReturned = null;
        }
      }
    
      final class KeyIterator extends HashIterator<K> {
    
        @Override
        public K next() {
          return nextEntry().getKey();
        }
      }
    
      final class ValueIterator extends HashIterator<V> {
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 90.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

       * but ProGuard can't figure out how to eliminate that default when RegularImmutableMap
       * overrides it.
       */
      abstract ImmutableSet<K> createKeySet();
    
      UnmodifiableIterator<K> keyIterator() {
        final UnmodifiableIterator<Entry<K, V>> entryIterator = entrySet().iterator();
        return new UnmodifiableIterator<K>() {
          @Override
          public boolean hasNext() {
            return entryIterator.hasNext();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 41.5K bytes
    - Viewed (0)
Back to top