Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 181 for get$index (0.15 seconds)

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

              }
    
              @Override
              public String get(int index) {
                if (index < 2) {
                  throw new AssertionError();
                }
                return list.get(index);
              }
            };
    
        EvictingQueue<String> queue = EvictingQueue.create(3);
        assertTrue(queue.addAll(misbehavingList));
    
        assertThat(queue.remove()).isEqualTo("three");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  2. benchmarks/src/main/java/org/elasticsearch/benchmark/search/aggregations/TermsReduceBenchmark.java

                    0,
                    buckets,
                    null
                );
            }
    
            @Override
            public InternalAggregations get(int index) {
                return aggsList.get(index);
            }
    
            @Override
            public int size() {
                return aggsList.size();
            }
        }
    
        @Param({ "32", "512" })
        private int bufferSize;
    
        @Benchmark
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Aug 20 15:45:38 GMT 2021
    - 8.1K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            if (localInterfaces.isEmpty())
                return null;
            return localInterfaces.get(index % localInterfaces.size());
        }
    
        private NetworkInterfaceInfo selectRemoteInterface(int index) {
            if (remoteInterfaces.isEmpty())
                return null;
            return remoteInterfaces.get(index % remoteInterfaces.size());
        }
    
        private boolean canEstablishMoreChannels() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/cache/LocalCache.java

            int newCount = this.count - 1;
            AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
            int index = hash & (table.length() - 1);
            ReferenceEntry<K, V> first = table.get(index);
    
            for (e = first; e != null; e = e.getNext()) {
              K entryKey = e.getKey();
              if (e.getHash() == hash
                  && entryKey != null
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 143.5K bytes
    - Click Count (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java

                if (value.getClass().isArray()) {
                    return Array.get(value, index);
                }
    
                if (value instanceof List list) {
                    return list.get(index);
                }
            } catch (NumberFormatException | IndexOutOfBoundsException e) {
                return null;
            }
    
            final String message = String.format(
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 10.8K bytes
    - Click Count (0)
  6. guava/src/com/google/common/cache/LocalCache.java

            int newCount = this.count - 1;
            AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
            int index = hash & (table.length() - 1);
            ReferenceEntry<K, V> first = table.get(index);
    
            for (e = first; e != null; e = e.getNext()) {
              K entryKey = e.getKey();
              if (e.getHash() == hash
                  && entryKey != null
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 148.9K bytes
    - Click Count (0)
  7. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

        }
    
        @Override
        ImmutableList<E> createAsList() {
          return new ImmutableAsList<E>() {
            @Override
            public E get(int index) {
              return Indexed.this.get(index);
            }
    
            @Override
            Indexed<E> delegateCollection() {
              return Indexed.this;
            }
          };
        }
      }
    
      public static <E> Builder<E> builder() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/ImmutableList.java

        Itr(ImmutableList<E> list, int index) {
          super(list.size(), index);
          this.list = list;
        }
    
        @Override
        protected E get(int index) {
          return list.get(index);
        }
      }
    
      @Override
      public int indexOf(@Nullable Object object) {
        return (object == null) ? -1 : Lists.indexOfImpl(this, object);
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/app/service/BadWordService.java

            }
        }
    
        private static String getValue(final List<String> list, final int index) {
            if (index >= list.size()) {
                return StringUtil.EMPTY;
            }
            String item = list.get(index).trim();
            if (StringUtil.isBlank(item)) {
                return StringUtil.EMPTY;
            }
            if (item.length() > 1 && item.charAt(0) == '"' && item.charAt(item.length() - 1) == '"') {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Nov 28 16:29:12 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/opensearch/user/allcommon/EsAbstractBehavior.java

                return parent.equals(o);
            }
    
            public int hashCode() {
                return parent.hashCode();
            }
    
            public E get(final int index) {
                return parent.get(index);
            }
    
            public E set(final int index, final E element) {
                return parent.set(index, element);
            }
    
            public void add(final int index, final E element) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Nov 27 07:01:25 GMT 2025
    - 26.4K bytes
    - Click Count (0)
Back to Top