Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for moving (0.17 sec)

  1. android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java

        /**
         * Builds a new min-max priority queue using the previously specified options, and having no
         * initial contents.
         */
        public <T extends B> MinMaxPriorityQueue<T> create() {
          return create(Collections.<T>emptySet());
        }
    
        /**
         * Builds a new min-max priority queue using the previously specified options, and having the
         * given initial elements.
         */
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 34K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /** Tests for {@link Graphs#hasCycle(Graph)} and {@link Graphs#hasCycle(Network)}. */
    // TODO(user): Consider moving this to GraphsTest.
    @RunWith(JUnit4.class)
    public class GraphPropertiesTest {
      ImmutableList<MutableGraph<Integer>> graphsToTest;
      Graph<Integer> directedGraph;
      Graph<Integer> undirectedGraph;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 19 21:11:54 GMT 2017
    - 5.7K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/graph/GraphPropertiesTest.java

    import org.junit.Before;
    import org.junit.Test;
    import org.junit.runner.RunWith;
    import org.junit.runners.JUnit4;
    
    /** Tests for {@link Graphs#hasCycle(Graph)} and {@link Graphs#hasCycle(Network)}. */
    // TODO(user): Consider moving this to GraphsTest.
    @RunWith(JUnit4.class)
    public class GraphPropertiesTest {
      ImmutableList<MutableGraph<Integer>> graphsToTest;
      Graph<Integer> directedGraph;
      Graph<Integer> undirectedGraph;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 07 15:09:01 GMT 2016
    - 5.7K bytes
    - Viewed (0)
  4. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

                }
                return buf.toString();
            }
        }
    
        public ArtifactVersion matchVersion(List<ArtifactVersion> versions) {
            // TODO could be more efficient by sorting the list and then moving along the restrictions in order?
    
            ArtifactVersion matched = null;
            for (ArtifactVersion version : versions) {
                if (containsVersion(version)) {
    Java
    - Registered: Sun Apr 21 03:35:09 GMT 2024
    - Last Modified: Wed Feb 28 07:40:37 GMT 2024
    - 18.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMapTest.java

        Collection<String> collection = map.values();
    
        LenientSerializableTester.reserializeAndAssertElementsEqual(collection);
      }
    
      // TODO: Re-enable this test after moving to new serialization format in ImmutableMap.
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 27 13:27:08 GMT 2024
    - 41.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Longs.java

        @Override
        public boolean contains(@CheckForNull Object target) {
          // Overridden to prevent a ton of boxing
          return (target instanceof Long) && Longs.indexOf(array, (Long) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@CheckForNull Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Long) {
            int i = Longs.indexOf(array, (Long) target, start, end);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

            iter.remove();
          }
        }
        assertIntact(q);
        assertThat(result).containsExactly(1, 15, 13, 8, 14);
      }
    
      /**
       * This tests a special case of the removeAt() call. Moving an element sideways on the heap could
       * break the invariants. Sometimes we need to bubble an element up instead of trickling down. See
       * implementation.
       */
      public void testInvalidatingRemove() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       * generates a synthetic method for the body of the lambda, the actual method calls that Animal
       * Sniffer is flagging don't appear inside toImmutableSortedMultiset but rather inside that
       * synthetic method. By moving those calls to a named method, we're able to apply
       * @IgnoreJRERequirement somewhere that it will help.
       */
      private static <T extends @Nullable Object, E> void mapAndAdd(
          T t,
          Multiset<E> multiset,
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CompactHashMap.java

      //
      // The elements of `keys`, `values`, and `entries` are added sequentially, so that elements 0 to
      // `size() - 1` are used and remaining elements are not. This makes iteration straightforward.
      // Removing an entry generally involves moving the last element of each array to where the removed
      // entry was, and adjusting index links accordingly.
    
      /**
       * The hashtable object. This can be either:
       *
       * <ul>
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 39.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Iterables.java

        // moving elements when remove() is called). Stop before 'from' because
        // we already know that should be kept.
        for (int n = list.size() - 1; n > from; n--) {
          if (predicate.apply(list.get(n))) {
            list.remove(n);
          }
        }
        // And now remove everything in the range [to, from) (going backwards).
        for (int n = from - 1; n >= to; n--) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
Back to top