Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 660 for text (0.17 sec)

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

      public void testLimitExtraSeparators() {
        String text = "a,,,b,,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(2).split(text);
        assertThat(items).containsExactly("a", ",,b,,c,d").inOrder();
      }
    
      public void testLimitExtraSeparatorsOmitEmpty() {
        String text = "a,,,b,,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(2).omitEmptyStrings().split(text);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Multisets.java

         * counts are converted to strings as by {@code String.valueOf}.
         */
        @Override
        public String toString() {
          String text = String.valueOf(getElement());
          int n = getCount();
          return (n == 1) ? text : (text + " x " + n);
        }
      }
    
      /** An implementation of {@link Multiset#equals}. */
      static boolean equalsImpl(Multiset<?> multiset, @CheckForNull Object object) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/hash/Hashing.java

        LinearCongruentialGenerator generator = new LinearCongruentialGenerator(input);
        int candidate = 0;
        int next;
    
        // Jump from bucket to bucket until we go out of range
        while (true) {
          next = (int) ((candidate + 1) / generator.nextDouble());
          if (next >= 0 && next < buckets) {
            candidate = next;
          } else {
            return candidate;
          }
        }
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/primitives/SignedBytesTest.java

        try {
          SignedBytes.checkedCast(value);
          fail("Cast to byte should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      public void testCompare() {
        for (byte x : VALUES) {
          for (byte y : VALUES) {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Joiner.java

          throws IOException {
        checkNotNull(appendable);
        if (parts.hasNext()) {
          appendable.append(toString(parts.next()));
          while (parts.hasNext()) {
            appendable.append(separator);
            appendable.append(toString(parts.next()));
          }
        }
        return appendable;
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/SplitterTest.java

      public void testLimitExtraSeparators() {
        String text = "a,,,b,,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(2).split(text);
        assertThat(items).containsExactly("a", ",,b,,c,d").inOrder();
      }
    
      public void testLimitExtraSeparatorsOmitEmpty() {
        String text = "a,,,b,,c,d";
        Iterable<String> items = COMMA_SPLITTER.limit(2).omitEmptyStrings().split(text);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 29.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Preconditions.java

       *
       * @param index a user-supplied index identifying an element of an array, list or string
       * @param size the size of that array, list or string
       * @param desc the text to use to describe this index in an error message
       * @return the value of {@code index}
       * @throws IndexOutOfBoundsException if {@code index} is negative or is not less than {@code size}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        try {
          Shorts.checkedCast(value);
          fail("Cast to short should have failed: " + value);
        } catch (IllegalArgumentException ex) {
          assertWithMessage(value + " not found in exception text: " + ex.getMessage())
              .that(ex.getMessage().contains(String.valueOf(value)))
              .isTrue();
        }
      }
    
      public void testCompare() {
        for (short x : VALUES) {
          for (short y : VALUES) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 26.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/PreconditionsTest.java

                    .addAll(curr)
                    .build());
          }
        }
        return allOverloads.build().asList();
      }
    
      // 'test' to demonstrate some potentially ambiguous overloads.  This 'test' is kind of strange,
      // but essentially each line will be a call to a Preconditions method that, but for a documented
      // change would be a compiler error.
    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)
  10. android/guava-tests/test/com/google/common/primitives/UnsignedBytesTest.java

      }
    
      public void testToString() {
        // We can easily afford to test this exhaustively.
        for (int i = 0; i <= 0xff; i++) {
          assertThat(UnsignedBytes.toString((byte) i)).isEqualTo(Integer.toString(i));
        }
      }
    
      public void testToStringWithRadix() {
        // We can easily afford to test this exhaustively.
        for (int radix = Character.MIN_RADIX; radix <= Character.MAX_RADIX; radix++) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 13.4K bytes
    - Viewed (0)
Back to top