Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 38 for str (0.18 sec)

  1. guava/src/com/google/common/base/CaseFormat.java

       * Converts the specified {@code String str} from this format to the specified {@code format}. A
       * "best effort" approach is taken; if {@code str} does not conform to the assumed format, then
       * the behavior of this method is undefined but we make a reasonable effort at converting anyway.
       */
      public final String to(CaseFormat format, String str) {
        checkNotNull(format);
        checkNotNull(str);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Dec 19 20:20:14 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/ConverterTest.java

        assertSame(stringIdentityConverter, stringIdentityConverter.reverse());
        assertSame(STR_TO_LONG, stringIdentityConverter.andThen(STR_TO_LONG));
    
        assertSame(STR_VAL, stringIdentityConverter.convert(STR_VAL));
        assertSame(STR_VAL, stringIdentityConverter.reverse().convert(STR_VAL));
    
        assertEquals("Converter.identity()", stringIdentityConverter.toString());
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 06 17:02:33 GMT 2023
    - 7.8K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/StreamsTest.java

                            collectionImpl.apply(ImmutableList.of()), (str, i) -> str + ":" + i)
                        .spliterator())
            .expect(ImmutableList.of());
        SpliteratorTester.of(
                () ->
                    Streams.mapWithIndex(
                            collectionImpl.apply(ImmutableList.of("a", "b", "c", "d", "e")),
                            (str, i) -> str + ":" + i)
                        .spliterator())
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 20K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/AsciiTest.java

          assertFalse(str, c == Ascii.toUpperCase(c));
          assertTrue(str, Ascii.isLowerCase(c));
          assertFalse(str, Ascii.isUpperCase(c));
        }
      }
    
      public void testCharsUpper() {
        for (char c : UPPER.toCharArray()) {
          String str = String.valueOf(c);
          assertFalse(str, c == Ascii.toLowerCase(c));
          assertTrue(str, c == Ascii.toUpperCase(c));
          assertFalse(str, Ascii.isLowerCase(c));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableListMultimap.java

       *
       * <pre>{@code
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
       *         .collect(toImmutableListMultimap(str -> str.charAt(0), str -> str.substring(1)));
       *
       * // is equivalent to
       *
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     new ImmutableListMultimap.Builder<Character, String>()
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Aug 24 01:40:03 GMT 2023
    - 17.1K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

        @Override
        public List<Character> create(Character[] elements) {
          char[] chars = Chars.toArray(Arrays.asList(elements));
          StringBuilder str = new StringBuilder();
          str.append(chars);
          return Lists.charactersOf(str);
        }
      }
    
      private abstract static class TestUnhashableListGenerator
          extends TestUnhashableCollectionGenerator<List<UnhashableObject>>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/TestWriter.java

      }
    
      @Override
      public void write(char[] cbuf, int off, int len) throws IOException {
        super.write(cbuf, off, len);
        flush();
      }
    
      @Override
      public void write(String str, int off, int len) throws IOException {
        super.write(str, off, len);
        flush();
      }
    
      public boolean closed() {
        return out.closed();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

      public void testFlatteningToImmutableSetMultimap() {
        Collector<String, ?, ImmutableSetMultimap<Character, Character>> collector =
            ImmutableSetMultimap.flatteningToImmutableSetMultimap(
                str -> str.charAt(0), str -> Chars.asList(str.substring(1).toCharArray()).stream());
        BiPredicate<Multimap<?, ?>, Multimap<?, ?>> equivalence =
            Equivalence.equals()
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/MapsCollectionTest.java

        @Override
        protected SortedMap<String, String> delegate() {
          return delegate;
        }
      }
    
      private static String encode(String str) {
        return BaseEncoding.base64().encode(str.getBytes(Charsets.UTF_8));
      }
    
      private static final Function<String, String> DECODE_FUNCTION =
          new Function<String, String>() {
            @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 32.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/ImmutableSetMultimap.java

       *
       * <pre>{@code
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
       *         .collect(toImmutableSetMultimap(str -> str.charAt(0), str -> str.substring(1)));
       *
       * // is equivalent to
       *
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     new ImmutableSetMultimap.Builder<Character, String>()
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top