Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 829 for element1 (0.05 sec)

  1. guava-testlib/src/com/google/common/collect/testing/Helpers.java

          }
    
          @Override
          public T set(int index, T element) {
            return data.set(index, element);
          }
    
          @Override
          public boolean add(T element) {
            return data.add(element);
          }
    
          @Override
          public void add(int index, T element) {
            data.add(index, element);
          }
    
          @Override
          public T remove(int index) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java

      /** Test an empty collection. */
      ZERO(0),
      /** Test a one-element collection. */
      ONE(1),
      /** Test a three-element collection. */
      SEVERAL(3),
      /*
       * TODO: add VERY_LARGE, noting that we currently assume that the fourth
       * sample element is not in any collection
       */
    
      ANY(ZERO, ONE, SEVERAL);
    
      private final Set<Feature<? super Collection>> implied;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/BloomFilter.java

    /**
     * A Bloom filter for instances of {@code T}. A Bloom filter offers an approximate containment test
     * with one-sided error: if it claims that an element is contained in it, this might be in error,
     * but if it claims that an element is <i>not</i> contained in it, then this is definitely true.
     *
     * <p>If you are unfamiliar with Bloom filters, this nice <a
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java

        return new Chars();
      }
    
      @Override
      public List<Character> create(Object... elements) {
        Character[] array = new Character[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (Character) 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.8K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SetsTest.java

                        int size = elements.length;
                        // Remove last element, if size > 1
                        Set<String> set1 =
                            (size > 1)
                                ? newHashSet(asList(elements).subList(0, size - 1))
                                : newHashSet(elements);
                        // Remove first element, if size > 0
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

      public void testHashCode() {
        int expectedHashCode = 1;
        for (E element : getOrderedElements()) {
          expectedHashCode = 31 * expectedHashCode + ((element == null) ? 0 : element.hashCode());
        }
        assertEquals(
            "A List's hashCode() should be computed from those of its elements.",
            expectedHashCode,
            getList().hashCode());
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java

       * That is, the first call to {@link #nextIndex()} will return {@code position}, and the first
       * call to {@link #next()} will return the element at that index, if available. Calls to {@link
       * #previous()} can retrieve the preceding {@code position} elements.
       *
       * @throws IndexOutOfBoundsException if {@code position} is negative or is greater than {@code
       *     size}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/TestStringMultisetGenerator.java

        return new Strings();
      }
    
      @Override
      public Multiset<String> create(Object... elements) {
        String[] array = new String[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (String) e;
        }
        return create(array);
      }
    
      protected abstract Multiset<String> create(String[] elements);
    
      @Override
      public String[] createArray(int length) {
        return new String[length];
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Chars.java

        }
        return array;
      }
    
      /**
       * Sorts the elements of {@code array} in descending order.
       *
       * @since 23.1
       */
      public static void sortDescending(char[] array) {
        checkNotNull(array);
        sortDescending(array, 0, array.length);
      }
    
      /**
       * Sorts the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Shorts.java

          return "Shorts.lexicographicalComparator()";
        }
      }
    
      /**
       * Sorts the elements of {@code array} in descending order.
       *
       * @since 23.1
       */
      public static void sortDescending(short[] array) {
        checkNotNull(array);
        sortDescending(array, 0, array.length);
      }
    
      /**
       * Sorts the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex}
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 25.5K bytes
    - Viewed (0)
Back to top