Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for string (0.17 sec)

  1. android/guava/src/com/google/common/base/CharMatcher.java

       * @param replacement the character to append to the result string in place of each matching
       *     character in {@code sequence}
       * @return the new string
       */
      public String replaceFrom(CharSequence sequence, char replacement) {
        String string = sequence.toString();
        int pos = indexIn(string);
        if (pos == -1) {
          return string;
        }
        char[] chars = string.toCharArray();
        chars[pos] = replacement;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

            throw new InterruptedException();
          }
          remainingNanos = endNanos - System.nanoTime();
        }
    
        String futureToString = toString();
        final String unitString = unit.toString().toLowerCase(Locale.ROOT);
        String message = "Waited " + timeout + " " + unit.toString().toLowerCase(Locale.ROOT);
        // Only report scheduling delay if larger than our spin threshold - otherwise it's just noise
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Preconditions.java

       * string of size {@code size}, and are in order. A position index may range from zero to {@code
       * size}, inclusive.
       *
       * @param start a user-supplied index identifying a starting position in an array, list or string
       * @param end a user-supplied index identifying an ending position in an array, list or string
       * @param size the size of that array, list or string
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 14 15:46:55 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertTrue(Arrays.equals(new String[] {"a"}, array));
      }
    
      @GwtIncompatible // Iterators.toArray(Iterator, Class)
      public void testToArray() {
        String[] sourceArray = new String[] {"a", "b", "c"};
        Iterator<String> iterator = asList(sourceArray).iterator();
        String[] newArray = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(sourceArray, newArray));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        TestCloseable, String, String, String, String, TestCloseable>() {
                      @Override
                      public TestCloseable apply(
                          DeferredCloser closer,
                          TestCloseable v1,
                          String v2,
                          String v3,
                          String v4,
                          String v5)
                          throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/CharMatcher.java

       * @param replacement the character to append to the result string in place of each matching
       *     character in {@code sequence}
       * @return the new string
       */
      public String replaceFrom(CharSequence sequence, char replacement) {
        String string = sequence.toString();
        int pos = indexIn(string);
        if (pos == -1) {
          return string;
        }
        char[] chars = string.toCharArray();
        chars[pos] = replacement;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedMap.java

       * maps ("constant maps"). Example:
       *
       * <pre>{@code
       * static final ImmutableSortedMap<Integer, String> INT_TO_WORD =
       *     new ImmutableSortedMap.Builder<Integer, String>(Ordering.natural())
       *         .put(1, "one")
       *         .put(2, "two")
       *         .put(3, "three")
       *         .buildOrThrow();
       * }</pre>
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 50.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeToken.java

          return subclass;
        }
        // class Base<A, B> {}
        // class Sub<X, Y> extends Base<X, Y> {}
        // Base<String, Integer>.subtype(Sub.class):
    
        // Sub<X, Y>.getSupertype(Base.class) => Base<X, Y>
        // => X=String, Y=Integer
        // => Sub<X, Y>=Sub<String, Integer>
        TypeToken<?> genericSubtype = toGenericType(subclass);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/Multimaps.java

       *
       * <pre>{@code
       * Multimap<String, Integer> multimap =
       *     ImmutableMultimap.of("a", 1, "a", 4, "b", 6);
       * EntryTransformer<String, Integer, String> transformer =
       *     new EntryTransformer<String, Integer, String>() {
       *       public String transformEntry(String key, Integer value) {
       *         return key + value;
       *       }
       *     };
       * Multimap<String, String> transformed =
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 86.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Sets.java

       * cast, for example:
       *
       * <pre>{@code
       * Set<Object> aFewBadObjects = ...
       * Set<String> manyBadStrings = ...
       *
       * // impossible for a non-String to be in the intersection
       * SuppressWarnings("unchecked")
       * Set<String> badStrings = (Set) Sets.intersection(
       *     aFewBadObjects, manyBadStrings);
       * }</pre>
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
Back to top