Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 287 for Ordering$ (0.09 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 28.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ConcurrentHashMultisetTest.java

            Collections.addAll(multiset, elements);
            return multiset;
          }
    
          @Override
          public List<String> order(List<String> insertionOrder) {
            return Ordering.natural().sortedCopy(insertionOrder);
          }
        };
      }
    
      private static final String KEY = "puppies";
    
      ConcurrentMap<String, AtomicInteger> backingMap;
      ConcurrentHashMultiset<String> multiset;
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Equivalence.java

       * iterables are equivalent to one another.
       *
       * <p>Note that this method performs a similar function for equivalences as {@link
       * com.google.common.collect.Ordering#lexicographical} does for orderings.
       *
       * <p>The returned object is serializable if this object is serializable.
       *
       * @since 10.0
       */
      @GwtCompatible(serializable = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/HashBiMap.java

          return key;
        } else if (oldEntryForKey != null && !force) {
          throw new IllegalArgumentException("key already present: " + key);
        }
    
        /*
         * The ordering here is important: if we deleted the key entry and then the value entry,
         * the key entry's prev or next pointer might point to the dead value entry, and when we
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 13 14:11:58 UTC 2023
    - 24.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/graph/TraverserTest.java

    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMultimap;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.primitives.Chars;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    @RunWith(JUnit4.class)
    public class TraverserTest {
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/TraverserTest.java

    import com.google.common.collect.ImmutableList;
    import com.google.common.collect.ImmutableMultimap;
    import com.google.common.collect.Iterables;
    import com.google.common.collect.Multiset;
    import com.google.common.collect.Ordering;
    import com.google.common.primitives.Chars;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    @RunWith(JUnit4.class)
    public class TraverserTest {
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 47.5K bytes
    - Viewed (0)
  8. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                    if (result < 0 || (result == 0 && (!lowerBoundInclusive || !upperBoundInclusive))) {
                        throw new InvalidVersionSpecificationException("Range defies version ordering: " + spec);
                    }
                }
    
                restriction = new Restriction(lowerVersion, lowerBoundInclusive, upperVersion, upperBoundInclusive);
            }
    
            return restriction;
        }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 19K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/CompactHashSet.java

     * average, in the marking phase, not {@code 5.0} as in {@code java.util.HashSet}.
     *
     * <p>If there are no removals, then {@link #iterator iteration} order 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.HashSet}.
     * Generally speaking, this class reduces object allocation and memory consumption at the price of
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 20:24:49 UTC 2024
    - 24K bytes
    - Viewed (0)
  10. guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

       */
      private static final class ThreadConfinedTaskQueue {
        /**
         * This field is only used for identity comparisons with the current thread. Field assignments
         * are atomic, but do not provide happens-before ordering; however:
         *
         * <ul>
         *   <li>If this field's value == currentThread, we know that it's up to date, because write
         *       operations in a thread always happen-before subsequent read operations in the same
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 22.1K bytes
    - Viewed (0)
Back to top