Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 194 for Reed (0.17 sec)

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

          long seed = insertRandomly(elements, q);
          while (!q.isEmpty()) {
            elements.add(0, q.pollLast());
          }
          assertEqualsUsingSeed(seed, expected, elements);
        }
      }
    
      public void testCorrectOrdering_randomAccess() {
        long seed = new Random().nextLong();
        Random random = new Random(seed);
        PriorityQueue<Integer> control = new PriorityQueue<>();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/EnumMultisetTest.java

        uniqueEntries.addAll(ms.entrySet());
        assertEquals(3, uniqueEntries.size());
      }
    
      // Wrapper of EnumMultiset factory methods, because we need to skip create(Class).
      // create(Enum1.class) is equal to create(Enum2.class) but testEquals() expects otherwise.
      // For the same reason, we need to skip create(Iterable, Class).
      private static class EnumMultisetFactory {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  3. maven-compat/src/test/java/org/apache/maven/artifact/installer/ArtifactInstallerTest.java

        protected String component() {
            return "installer";
        }
    
        @Test
        void testArtifactInstallation() throws Exception {
            sessionScope.enter();
            try {
                sessionScope.seed(MavenSession.class, mock(MavenSession.class));
    
                String artifactBasedir = new File(getBasedir(), "src/test/resources/artifact-install").getAbsolutePath();
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/ObjectsTest.java

        int h1 = Objects.hashCode(1, "two", 3.0);
        int h2 = Objects.hashCode(Integer.valueOf(1), new String("two"), Double.valueOf(3.0));
        // repeatable
        assertEquals(h1, h2);
    
        // These don't strictly need to be true, but they're nice properties.
        assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2));
        assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelProblem.java

            V40
        }
    
        /**
         * Gets the identifier of the model from which the problem originated. While the general form of this identifier is
         * <code>groupId:artifactId:version</code> the returned identifier need not be complete. The identifier is derived
         * from the information that is available at the point the problem occurs and as such merely serves as a best effort
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CompactHashSet.java

          entries[srcIndex] = 0;
    
          // also need to update whoever's "next" pointer was pointing to the last entry place
          int tableIndex = smearedHash(object) & mask;
          int next = CompactHashing.tableGet(table, tableIndex);
          int srcNext = srcIndex + 1;
          if (next == srcNext) {
            // we need to update the root pointer
            CompactHashing.tableSet(table, tableIndex, dstIndex + 1);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableEnumSet.java

          default:
            return new ImmutableEnumSet<>(set);
        }
      }
    
      /*
       * Notes on EnumSet and <E extends Enum<E>>:
       *
       * This class isn't an arbitrary ForwardingImmutableSet because we need to
       * know that calling {@code clone()} during deserialization will return an
       * object that no one else has a reference to, allowing us to guarantee
       * immutability. Hence, we support only {@link EnumSet}.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 4.2K bytes
    - Viewed (0)
  8. maven-compat/src/test/java/org/apache/maven/project/inheritance/t02/ProjectInheritanceTest.java

        //
        // p4 ---> p3 ---> p2 ---> p1 ---> p0 --> super model
        //
        // ----------------------------------------------------------------------
    
        @Test
        @DisabledOnOs(OS.WINDOWS) // need to investigate why it fails on windows
        void testProjectInheritance() throws Exception {
            File localRepo = getLocalRepositoryPath();
    
            System.out.println("Local repository is at: " + localRepo.getAbsolutePath());
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 6.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Equivalence.java

       *       hash(x}} consistently return the same value provided {@code x} remains unchanged
       *       according to the definition of the equivalence. The hash need not remain consistent from
       *       one execution of an application to another execution of the same application.
       *   <li>It is <i>distributable across equivalence</i>: for any references {@code x} and {@code
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Suppliers.java

      @VisibleForTesting
      static class MemoizingSupplier<T extends @Nullable Object> implements Supplier<T>, Serializable {
        final Supplier<T> delegate;
        transient volatile boolean initialized;
        // "value" does not need to be volatile; visibility piggy-backs
        // on volatile read of "initialized".
        @CheckForNull transient T value;
    
        MemoizingSupplier(Supplier<T> delegate) {
          this.delegate = checkNotNull(delegate);
        }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
Back to top