Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 258 for Ordering (0.04 sec)

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

        ImmutableListMultimap.Builder<String, Integer> builder = ImmutableListMultimap.builder();
        builder.put("bb", 3);
        builder.put("d", 2);
        builder.put("a", 5);
        builder.orderKeysBy(
            new Ordering<String>() {
              @Override
              public int compare(String left, String right) {
                return left.length() - right.length();
              }
            });
        builder.put("cc", 4);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/MultimapsCollectionTest.java

      };
    
      static final Supplier<TreeSet<String>> STRING_TREESET_FACTORY =
          new Supplier<TreeSet<String>>() {
            @Override
            public TreeSet<String> get() {
              return new TreeSet<>(Ordering.natural().nullsLast());
            }
          };
    
      static void populateMultimapForGet(Multimap<Integer, String> multimap, String[] elements) {
        multimap.put(2, "foo");
        for (String element : elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/hash/BloomFilterTest.java

      }
    
      /**
       * This test will fail whenever someone updates/reorders the BloomFilterStrategies constants. Only
       * appending a new constant is allowed.
       */
      // This test ensures that our reliance on the ordering elsewhere is safe.
      @SuppressWarnings("EnumOrdinal")
      public void testBloomFilterStrategies() {
        assertThat(BloomFilterStrategies.values()).hasLength(2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  4. src/test/java/jcifs/ACETest.java

                assertTrue(ACE.GENERIC_EXECUTE > 0, "GENERIC_EXECUTE should be positive");
                assertTrue(ACE.GENERIC_WRITE > 0, "GENERIC_WRITE should be positive");
    
                // Test ordering (corrected for actual bit values)
                assertTrue(ACE.GENERIC_ALL < ACE.GENERIC_EXECUTE, "GENERIC_ALL should be less than GENERIC_EXECUTE");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 24.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompactHashMap.java

     *
     * <p>If there are no removals, then iteration order for the {@link #entrySet}, {@link #keySet}, and
     * {@link #values} views is the same as insertion order. Any removal invalidates any ordering
     * guarantees.
     *
     * <p>This class should not be assumed to be universally superior to {@code java.util.HashMap}.
     * Generally speaking, this class reduces object allocation and memory consumption at the price of
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 35.7K bytes
    - Viewed (0)
  6. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            checkInvalidRange("[1.0,1.2),1.3");
            // overlap
            checkInvalidRange("[1.0,1.2),(1.1,1.3]");
            // overlap
            checkInvalidRange("[1.1,1.3),(1.0,1.2]");
            // ordering
            checkInvalidRange("(1.1,1.2],[1.0,1.1)");
        }
    
        @Test
        @SuppressWarnings("checkstyle:MethodLength")
        void testIntersections() throws InvalidVersionSpecificationException {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun Mar 30 23:08:36 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableCollection.java

     *   <li><b>Deterministic iteration.</b> The iteration order is always well-defined, depending on
     *       how the collection was created. Typically this is insertion order unless an explicit
     *       ordering is otherwise specified (e.g. {@link ImmutableSortedSet#naturalOrder}). See the
     *       appropriate factory method for details. View collections such as {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

         * not in {@link #nextElements}, this method throws an {@link UnknownElementException}.
         *
         * <p>This method is used when testing iterators without a known ordering. We poll the target
         * iterator's next element and pass it to the reference iterator through this method so it can
         * return the same element. This enables the assertion to pass and the reference iterator to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/BloomFilterTest.java

      }
    
      /**
       * This test will fail whenever someone updates/reorders the BloomFilterStrategies constants. Only
       * appending a new constant is allowed.
       */
      // This test ensures that our reliance on the ordering elsewhere is safe.
      @SuppressWarnings("EnumOrdinal")
      public void testBloomFilterStrategies() {
        assertThat(BloomFilterStrategies.values()).hasLength(2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 22K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableCollection.java

     *   <li><b>Deterministic iteration.</b> The iteration order is always well-defined, depending on
     *       how the collection was created. Typically this is insertion order unless an explicit
     *       ordering is otherwise specified (e.g. {@link ImmutableSortedSet#naturalOrder}). See the
     *       appropriate factory method for details. View collections such as {@link
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.7K bytes
    - Viewed (0)
Back to top