Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for itr (0.03 sec)

  1. guava/src/com/google/common/collect/FilteredEntryMultimap.java

          @SuppressWarnings("unchecked") // it's definitely equal to a K
          K k = (K) key;
          List<V> result = Lists.newArrayList();
          Iterator<V> itr = collection.iterator();
          while (itr.hasNext()) {
            V v = itr.next();
            if (satisfies(k, v)) {
              itr.remove();
              result.add(v);
            }
          }
          if (result.isEmpty()) {
            return null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Collections2.java

        }
    
        @Override
        public boolean removeAll(final Collection<?> collection) {
          boolean changed = false;
          Iterator<E> itr = unfiltered.iterator();
          while (itr.hasNext()) {
            E e = itr.next();
            if (predicate.apply(e) && collection.contains(e)) {
              itr.remove();
              changed = true;
            }
          }
          return changed;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

          @SuppressWarnings("unchecked") // it's definitely equal to a K
          K k = (K) key;
          List<V> result = Lists.newArrayList();
          Iterator<V> itr = collection.iterator();
          while (itr.hasNext()) {
            V v = itr.next();
            if (satisfies(k, v)) {
              itr.remove();
              result.add(v);
            }
          }
          if (result.isEmpty()) {
            return null;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/AbstractBiMap.java

        this.delegate.replaceAll(function);
        inverse.delegate.clear();
        Entry<K, V> broken = null;
        Iterator<Entry<K, V>> itr = this.delegate.entrySet().iterator();
        while (itr.hasNext()) {
          Entry<K, V> entry = itr.next();
          K k = entry.getKey();
          V v = entry.getValue();
          K conflict = inverse.delegate.putIfAbsent(v, k);
          if (conflict != null) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Aug 24 01:40:03 UTC 2023
    - 14.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/HashBiMap.java

        firstInKeyInsertionOrder = null;
        lastInKeyInsertionOrder = null;
        modCount++;
      }
    
      @Override
      public int size() {
        return size;
      }
    
      private abstract class Itr<T extends @Nullable Object> implements Iterator<T> {
        @CheckForNull BiEntry<K, V> next = firstInKeyInsertionOrder;
        @CheckForNull BiEntry<K, V> toRemove = null;
        int expectedModCount = modCount;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

      @Override
      public Iterator<E> iterator() {
        return new Itr(toArray());
      }
    
      /** Snapshot iterator that works off copy of underlying q array. */
      private class Itr implements Iterator<E> {
        final Object[] array; // Array of all elements
        int cursor; // index of next element to return;
        int lastRet; // index of last element, or -1 if no such
    
        Itr(Object[] array) {
          lastRet = -1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 07 21:36:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableList.java

        } else {
          return new Itr<E>(this, index);
        }
      }
    
      /** A singleton implementation of iterator() for the empty ImmutableList. */
      // TODO(b/345814817): Move this to RegularImmutableList?
      @SuppressWarnings("ClassInitializationDeadlock")
      private static final UnmodifiableListIterator<Object> EMPTY_ITR =
          new Itr<Object>(RegularImmutableList.EMPTY, 0);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java

      @Override
      public Iterator<E> iterator() {
        final Monitor monitor = this.monitor;
        monitor.enter();
        try {
          return new Itr();
        } finally {
          monitor.leave();
        }
      }
    
      /** Iterator for MonitorBasedArrayBlockingQueue */
      private class Itr implements Iterator<E> {
        /** Index of element to be returned by next, or a negative number if no such. */
        private int nextIndex;
    
        /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Apr 19 19:24:36 UTC 2023
    - 22.5K bytes
    - Viewed (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/CommonsCliMavenOptions.java

            public static final String CACHE_ARTIFACT_NOT_FOUND = "canf";
            public static final String STRICT_ARTIFACT_DESCRIPTOR_POLICY = "sadp";
            public static final String IGNORE_TRANSITIVE_REPOSITORIES = "itr";
    
            @Override
            protected void prepareOptions(org.apache.commons.cli.Options options) {
                super.prepareOptions(options);
                options.addOption(Option.builder(ALTERNATE_POM_FILE)
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 16K bytes
    - Viewed (0)
  10. compat/maven-embedder/src/main/java/org/apache/maven/cli/CLIManager.java

        public static final String CACHE_ARTIFACT_NOT_FOUND = "canf";
    
        public static final String STRICT_ARTIFACT_DESCRIPTOR_POLICY = "sadp";
    
        public static final String IGNORE_TRANSITIVE_REPOSITORIES = "itr";
    
        public static final String DEBUG = "debug";
        public static final String ENC = "enc";
        public static final String YJP = "yjp";
    
        protected Options options;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 17.6K bytes
    - Viewed (0)
Back to top