Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 924 for Elements (0.21 sec)

  1. guava/src/com/google/common/graph/ElementOrder.java

      }
    
      /**
       * Returns an instance which specifies that the natural ordering of the elements is guaranteed.
       */
      public static <S extends Comparable<? super S>> ElementOrder<S> natural() {
        return new ElementOrder<>(Type.SORTED, Ordering.<S>natural());
      }
    
      /**
       * Returns an instance which specifies that the ordering of the elements is guaranteed to be
       * determined by {@code comparator}.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          return Ordering.natural().sortedCopy(insertionOrder);
        }
    
        @Override
        public Set<Integer> create(Object... elements) {
          ImmutableRangeSet.Builder<Integer> builder = ImmutableRangeSet.builder();
          for (Object o : elements) {
            Integer i = (Integer) o;
            builder.add(Range.singleton(i));
          }
          return builder.build().asSet(DiscreteDomain.integers());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 02 18:21:29 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> copyOf(E[] elements) {
        return ImmutableSortedSet.copyOf(elements);
      }
    
      @Override
      protected <E extends Comparable<? super E>> SortedSet<E> copyOf(
          Collection<? extends E> elements) {
        return ImmutableSortedSet.copyOf(elements);
      }
    
      @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ImmutableListTest.java

      public void testBuilderAddArrayHandlesNulls() {
        @Nullable String[] elements = new @Nullable String[] {"a", null, "b"};
        ImmutableList.Builder<String> builder = ImmutableList.builder();
        assertThrows(NullPointerException.class, () -> builder.add((String[]) elements));
        ImmutableList<String> result = builder.build();
    
        /*
         * Maybe it rejects all elements, or maybe it adds "a" before failing.
         * Either way is fine with us.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java

        // Add more than two elements to increment size removals.
        cache.put(3, 20);
        cache.put(6, 2);
        cache.put(98, 45);
        cache.put(56, 76);
        cache.put(23, 84);
    
        // Replace the two present elements.
        cache.put(23, 20);
        cache.put(56, 49);
        cache.put(23, 2);
        cache.put(56, 4);
    
        // Expire the two present elements.
        fakeTicker.advance(1001, MILLISECONDS);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestCollidingSetGenerator.java

    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Colliders;
    import java.util.List;
    
    /**
     * A generator using sample elements whose hash codes all collide badly.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class TestCollidingSetGenerator implements TestSetGenerator<Object> {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

                      @Override
                      @SuppressWarnings({"unchecked", "rawtypes"})
                      public Map<TypeToken, Object> create(Object... elements) {
                        MutableTypeToInstanceMap<Object> map = new MutableTypeToInstanceMap<>();
                        for (Object object : elements) {
                          Entry<TypeToken, Object> entry = (Entry<TypeToken, Object>) object;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/NavigableSetTestSuiteBuilder.java

                    Collections.reverse(list);
                    return list;
                  }
    
                  @Override
                  public Set<E> create(Object... elements) {
                    NavigableSet<E> navigableSet = (NavigableSet<E>) delegate.create(elements);
                    return navigableSet.descendingSet();
                  }
                })
            .named(parentBuilder.getName() + " descending")
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  9. api/maven-api-meta/src/main/java/org/apache/maven/api/annotations/package-info.java

    // CHECKSTYLE_OFF: RegexpHeader
    /**
     * This package contains non-functional annotations which are
     * used to tag various elements and help users understanding
     * how those types should be used.
     *
     * @since 4.0.0
     */
    @Experimental
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Thu Mar 23 05:29:39 UTC 2023
    - 273 bytes
    - Viewed (0)
  10. 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)
Back to top