Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 29 of 29 for itr (0.03 sec)

  1. 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)
  2. android/guava/src/com/google/common/collect/Sets.java

          } else {
            return ImmutableEnumSet.asImmutable(EnumSet.copyOf(collection));
          }
        } else {
          Iterator<E> itr = elements.iterator();
          if (itr.hasNext()) {
            EnumSet<E> enumSet = EnumSet.of(itr.next());
            Iterators.addAll(enumSet, itr);
            return ImmutableEnumSet.asImmutable(enumSet);
          } else {
            return ImmutableSet.of();
          }
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. android/guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(ImmutableList.of(-1, 3, 5), result);
      }
    
      public void testLeastOfIterator_simple_nMinusOne_withNullElement() {
        Iterator<@Nullable Integer> itr = Iterators.forArray(3, null, 5, -1);
        List<@Nullable Integer> result = Ordering.<Integer>natural().nullsLast().leastOf(itr, 3);
        assertTrue(result instanceof RandomAccess);
        assertListImmutable(result);
        assertEquals(ImmutableList.of(-1, 3, 5), result);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/OrderingTest.java

        assertEquals(ImmutableList.of(-1, 3, 5), result);
      }
    
      public void testLeastOfIterator_simple_nMinusOne_withNullElement() {
        Iterator<@Nullable Integer> itr = Iterators.forArray(3, null, 5, -1);
        List<@Nullable Integer> result = Ordering.<Integer>natural().nullsLast().leastOf(itr, 3);
        assertTrue(result instanceof RandomAccess);
        assertListImmutable(result);
        assertEquals(ImmutableList.of(-1, 3, 5), result);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. okhttp-android/src/main/baseline-prof.txt

    HSPLkotlin/collections/SetsKt__SetsKt;->optimizeReadOnlyList(Ljava/util/List;)Ljava/util/List;
    HSPLkotlin/collections/builders/ListBuilder$Itr;-><init>(Lkotlin/collections/builders/ListBuilder;I)V
    HSPLkotlin/collections/builders/ListBuilder$Itr;->hasNext()Z
    HSPLkotlin/collections/builders/ListBuilder$Itr;->next()Ljava/lang/Object;
    HSPLkotlin/collections/builders/ListBuilder;-><init>()V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Mar 21 11:22:00 UTC 2022
    - 127.9K bytes
    - Viewed (0)
Back to top