Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 84 for join (0.13 sec)

  1. guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        queue.takeSuccessfully();
        assertInterrupted();
      }
    
      // join() tests
      public void testJoinWithNoWait() throws InterruptedException {
        Stopwatch stopwatch = Stopwatch.createStarted();
        Thread thread = new Thread(new JoinTarget(15));
        thread.start();
        thread.join();
        assertFalse(thread.isAlive());
    
        joinUninterruptibly(thread);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 31.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

            builder.append(JavaVersion.CURRENT.typeName(ownerType)).append('.');
          }
          return builder
              .append(rawType.getName())
              .append('<')
              .append(COMMA_JOINER.join(transform(argumentsList, JavaVersion.CURRENT::typeName)))
              .append('>')
              .toString();
        }
    
        @Override
        public int hashCode() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

            .containsExactly(1, 2, 3, 9, 8, 7)
            .inOrder();
      }
    
      public void testJoin() {
        assertEquals("2,1,3,4", fluent(2, 1, 3, 4).join(Joiner.on(",")));
      }
    
      public void testJoin_empty() {
        assertEquals("", fluent().join(Joiner.on(",")));
      }
    
      public void testGet() {
        assertEquals("a", FluentIterable.from(Lists.newArrayList("a", "b", "c")).get(0));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/TestThread.java

      // clean up these threads.
      @SuppressWarnings("deprecation")
      @Override
      public void tearDown() throws Exception {
        stop();
        join();
    
        if (uncaughtThrowable != null) {
          throw (AssertionFailedError)
              new AssertionFailedError("Uncaught throwable in " + getName())
                  .initCause(uncaughtThrowable);
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/reflect/TypeResolver.java

        }
    
        TypeVariable<?> captureAsTypeVariable(Type[] upperBounds) {
          String name =
              "capture#" + id.incrementAndGet() + "-of ? extends " + Joiner.on('&').join(upperBounds);
          return Types.newArtificialTypeVariable(WildcardCapturer.class, name, upperBounds);
        }
    
        private WildcardCapturer forTypeVariable(TypeVariable<?> typeParam) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/IntsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testJoin() {
        assertThat(Ints.join(",", EMPTY)).isEmpty();
        assertThat(Ints.join(",", ARRAY1)).isEqualTo("1");
        assertThat(Ints.join(",", (int) 1, (int) 2)).isEqualTo("1,2");
        assertThat(Ints.join("", (int) 1, (int) 2, (int) 3)).isEqualTo("123");
      }
    
      public void testLexicographicalComparator() {
        List<int[]> ordered =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 06 16:10:08 GMT 2024
    - 28.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java

        queue.takeSuccessfully();
        assertInterrupted();
      }
    
      // join() tests
      public void testJoinWithNoWait() throws InterruptedException {
        Stopwatch stopwatch = Stopwatch.createStarted();
        Thread thread = new Thread(new JoinTarget(15));
        thread.start();
        thread.join();
        assertFalse(thread.isAlive());
    
        joinUninterruptibly(thread);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 30.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Floats.java

      }
    
      /**
       * Returns a string containing the supplied {@code float} values, converted to strings as
       * specified by {@link Float#toString(float)}, and separated by {@code separator}. For example,
       * {@code join("-", 1.0f, 2.0f, 3.0f)} returns the string {@code "1.0-2.0-3.0"}.
       *
       * <p>Note that {@link Float#toString(float)} formats {@code float} differently in GWT. In the
       * previous example, it returns the string {@code "1-2-3"}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/primitives/CharsTest.java

          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testJoin() {
        assertThat(Chars.join(",", EMPTY)).isEmpty();
        assertThat(Chars.join(",", '1')).isEqualTo("1");
        assertThat(Chars.join(",", '1', '2')).isEqualTo("1,2");
        assertThat(Chars.join("", '1', '2', '3')).isEqualTo("123");
      }
    
      public void testLexicographicalComparator() {
        List<char[]> ordered =
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Chars.java

       * 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 {@code char} values, possibly empty
       */
      public static String join(String separator, char... array) {
        checkNotNull(separator);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 23.5K bytes
    - Viewed (0)
Back to top