Search Options

Results per page
Sort
Preferred Languages
Advance

Results 261 - 270 of 829 for element1 (0.06 sec)

  1. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

        List<Object> list = new ArrayList<>(equalityGroup.length);
        for (int i = 0; i < equalityGroup.length; i++) {
          Object element = equalityGroup[i];
          if (element == null) {
            throw new NullPointerException("at index " + i);
          }
          list.add(element);
        }
        equalityGroups.add(list);
        return this;
      }
    
      /** Run tests on equals method, throwing a failure on an invalid test */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                  protected List<String> create(final String[] elements) {
                    return new AbstractList<String>() {
                      @Override
                      public int size() {
                        return elements.length;
                      }
    
                      @Override
                      public String get(int index) {
                        return elements[index];
                      }
                    };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java

        return new Unhashables();
      }
    
      @Override
      public T create(Object... elements) {
        UnhashableObject[] array = createArray(elements.length);
        int i = 0;
        for (Object e : elements) {
          array[i++] = (UnhashableObject) e;
        }
        return create(array);
      }
    
      /**
       * Creates a new collection containing the given elements; implement this method instead of {@link
       * #create(Object...)}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/WebPlatformUrlTestData.kt

            var i = 0
            val parts = line.split(Regex(" ")).toTypedArray()
    
            val element = WebPlatformUrlTestData()
            element.input = unescape(parts[i++])
    
            val base = if (i < parts.size) parts[i++] else null
            element.base =
              when {
                base == null || base.isEmpty() -> list[list.size - 1].base
                else -> unescape(base)
              }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableListMultimap.java

        implements ListMultimap<K, V> {
      /**
       * Returns a {@link Collector} that accumulates elements into an {@code ImmutableListMultimap}
       * whose keys and values are the result of applying the provided mapping functions to the input
       * elements.
       *
       * <p>For streams with defined encounter order (as defined in the Ordering section of the {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 16 20:20:32 UTC 2024
    - 19K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestsForListsInJavaUtil.java

                  protected List<String> create(final String[] elements) {
                    return new AbstractList<String>() {
                      @Override
                      public int size() {
                        return elements.length;
                      }
    
                      @Override
                      public String get(int index) {
                        return elements[index];
                      }
                    };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/google/SortedMapGenerators.java

        @Override
        protected List<String> create(String[] elements) {
          ImmutableSortedMap.Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
          for (int i = 0; i < elements.length; i++) {
            builder.put(elements[i], i);
          }
          return builder.build().keySet().asList();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

      @Override
      public int add(@ParametricNullness E element, int occurrences) {
        if (occurrences == 0) {
          return count(element);
        }
        checkArgument(occurrences > 0, "occurrences cannot be negative: %s", occurrences);
        Count frequency = backingMap.get(element);
        int oldCount;
        if (frequency == null) {
          oldCount = 0;
          backingMap.put(element, new Count(occurrences));
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

              }
            };
        assertEquals(5, Iterables.size(collection));
      }
    
      private static <T extends @Nullable Object> Iterable<T> iterable(T... elements) {
        final List<T> list = asList(elements);
        return new Iterable<T>() {
          @Override
          public Iterator<T> iterator() {
            return list.iterator();
          }
        };
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/SLinkedList.java

        /**
         * 先頭に追加します。
         *
         * @param element
         *            追加するオブジェクト
         */
        public void addFirst(final E element) {
            header.next.addBefore(element);
        }
    
        /**
         * 最後に追加します。
         *
         * @param element
         *            追加するオブジェクト
         */
        public void addLast(final E element) {
            header.addBefore(element);
        }
    
        /**
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11K bytes
    - Viewed (0)
Back to top