Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 221 for star (0.24 sec)

  1. android/guava-tests/test/com/google/common/base/SuppliersTest.java

                @Override
                public void run() {
                  assertSame(Boolean.TRUE, memoizedSupplier.get());
                }
              };
        }
        for (Thread t : threads) {
          t.start();
        }
        for (Thread t : threads) {
          t.join();
        }
    
        if (thrown.get() != null) {
          throw thrown.get();
        }
        assertEquals(1, count.get());
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 18.1K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

          return samples;
        }
    
        @Override
        public Set<K> create(Object... elements) {
          @SuppressWarnings("unchecked")
          K[] keysArray = (K[]) elements;
    
          // Start with a suitably shaped collection of entries
          Collection<Entry<K, V>> originalEntries = mapGenerator.getSampleElements(elements.length);
    
          // Create a copy of that, with the desired value for each key
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 18.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/PreconditionsTest.java

        try {
          Preconditions.checkPositionIndexes(-1, 1, 1);
          fail();
        } catch (IndexOutOfBoundsException expected) {
          assertThat(expected).hasMessageThat().isEqualTo("start index (-1) must not be negative");
        }
      }
    
      public void testCheckPositionIndexes_endTooHigh() {
        try {
          Preconditions.checkPositionIndexes(0, 2, 1);
          fail();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

        }
      }
    
      // Technically we should test other reentrant scenarios (9 combinations of
      // hasNext/next/peek), but we'll cop out for now, knowing that peek() and
      // next() both start by invoking hasNext() anyway.
    
      /** Throws an undeclared checked exception. */
      private static void sneakyThrow(Throwable t) {
        class SneakyThrower<T extends Throwable> {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelInterpolator.java

            private final Object root;
    
            /**
             * Construct a new value source, using the supplied object as the root from
             * which to start, and using expressions split at the dot ('.') to navigate
             * the object graph beneath this root.
             * @param root the root of the graph.
             */
            public ObjectBasedValueSource(Object root) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 20K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedInts.java

       * separator}. For example, {@code join("-", 1, 2, 3)} returns the string {@code "1-2-3"}.
       *
       * @param separator the text that should appear between consecutive values in the resulting string
       *     (but not at the start or end)
       * @param array an array of unsigned {@code int} values, possibly empty
       */
      public static String join(String separator, int... array) {
        checkNotNull(separator);
        if (array.length == 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  7. maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

                "0"
            };
    
            checkVersionsArrayEqual(arr);
        }
    
        /**
         * Test <a href="https://issues.apache.org/jira/browse/MNG-6964">MNG-6964</a> edge cases
         * for qualifiers that start with "-0.", which was showing A == C and B == C but A &lt; B.
         */
        @Test
        void testMng6964() {
            String a = "1-0.alpha";
            String b = "1-0.beta";
            String c = "1";
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Jan 09 06:39:47 GMT 2024
    - 14K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                          @Override
                          public int compare(Entry<String, String> left, Entry<String, String> right) {
                            return ComparisonChain.start()
                                .compare(left.getKey(), right.getKey(), Ordering.natural().nullsFirst())
                                .compare(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       * "1:2:255"}.
       *
       * @param separator the text that should appear between consecutive values in the resulting string
       *     (but not at the start or end)
       * @param array an array of {@code byte} values, possibly empty
       */
      public static String join(String separator, byte... array) {
        checkNotNull(separator);
        if (array.length == 0) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/cache/CacheBuilderTest.java

                  public void run() {
                    computationStarted.countDown();
                    cache.getUnchecked("b");
                    computationComplete.countDown();
                  }
                })
            .start();
    
        // wait for the computingEntry to be created
        computationStarted.await();
        cache.invalidateAll();
        // let the computation proceed
        computingLatch.countDown();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 20:10:02 GMT 2023
    - 25.5K bytes
    - Viewed (0)
Back to top