Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 127 for get$index (0.08 sec)

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

            return new ImmutableAsList<Entry<K, V>>() {
              @Override
              public Entry<K, V> get(int index) {
                return new AbstractMap.SimpleImmutableEntry<>(
                    keySet.asList().get(index), valueList.get(index));
              }
    
              @Override
              public Spliterator<Entry<K, V>> spliterator() {
                return CollectSpliterators.indexed(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/Helpers.java

          @Override
          public int size() {
            return max(0, data.size() + delta);
          }
    
          @Override
          public T get(int index) {
            return data.get(index);
          }
    
          @Override
          public T set(int index, T element) {
            return data.set(index, element);
          }
    
          @Override
          public boolean add(T element) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenProperties.java

            if (getHeader() == null && layout.isEmpty()) {
                // This is the first comment. Search for blank lines.
                int index = commentLines.size() - 1;
                while (index >= 0 && !commentLines.get(index).isEmpty()) {
                    index--;
                }
                setHeader(new ArrayList<String>(commentLines.subList(0, index + 1)));
                return index + 1;
            } else {
                return 0;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

        @Override
        public int size() {
          return parent.length();
        }
    
        @Override
        public Integer get(int index) {
          return parent.get(index);
        }
    
        @Override
        public boolean contains(@CheckForNull Object target) {
          return indexOf(target) >= 0;
        }
    
        @Override
        public int indexOf(@CheckForNull Object target) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

        @Override
        public int size() {
          return parent.length();
        }
    
        @Override
        public Double get(int index) {
          return parent.get(index);
        }
    
        @Override
        public boolean contains(@CheckForNull Object target) {
          return indexOf(target) >= 0;
        }
    
        @Override
        public int indexOf(@CheckForNull Object target) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 23K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ArrayTable.java

          this.keyIndex = keyIndex;
        }
    
        @Override
        public Set<K> keySet() {
          return keyIndex.keySet();
        }
    
        K getKey(int index) {
          return keyIndex.keySet().asList().get(index);
        }
    
        abstract String getKeyRole();
    
        @ParametricNullness
        abstract V getValue(int index);
    
        @ParametricNullness
        abstract V setValue(int index, @ParametricNullness V newValue);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

                @Override
                public int size() {
                  return axes.size();
                }
    
                @Override
                public List<E> get(int index) {
                  return axes.get(index).asList();
                }
    
                @Override
                boolean isPartialView() {
                  return true;
                }
    
                // redeclare to help optimizers with b/310253115
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMultimap.java

        public int size() {
          return ImmutableMultimap.this.size();
        }
    
        @Override
        Multiset.Entry<K> getEntry(int index) {
          Map.Entry<K, ? extends Collection<V>> entry = map.entrySet().asList().get(index);
          return Multisets.immutableEntry(entry.getKey(), entry.getValue().size());
        }
    
        @Override
        boolean isPartialView() {
          return true;
        }
    
        @GwtIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ListsTest.java

            return Lists.asList("foo", "bar", new String[0]).iterator();
          }
        }.test();
      }
    
      private static void assertIndexIsOutOfBounds(List<String> list, int index) {
        try {
          list.get(index);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
      }
    
      public void testReverseViewRandomAccess() {
        List<Integer> fromList = Lists.newArrayList(SOME_LIST);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ListsTest.java

            return Lists.asList("foo", "bar", new String[0]).iterator();
          }
        }.test();
      }
    
      private static void assertIndexIsOutOfBounds(List<String> list, int index) {
        try {
          list.get(index);
          fail();
        } catch (IndexOutOfBoundsException expected) {
        }
      }
    
      public void testReverseViewRandomAccess() {
        List<Integer> fromList = Lists.newArrayList(SOME_LIST);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
Back to top