Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for cars (0.18 sec)

  1. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(Chars.contains(ARRAY234, (char) 2)).isTrue();
        assertThat(Chars.contains(ARRAY234, (char) 3)).isTrue();
        assertThat(Chars.contains(ARRAY234, (char) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Chars.indexOf(EMPTY, (char) 1)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY1, (char) 2)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY234, (char) 1)).isEqualTo(-1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 24.7K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/base/AsciiBenchmark.java

          chars.add(randomAlpha());
        }
        for (int i = 0; i < nonAlpha; i++) {
          chars.add(randomNonAlpha());
        }
        Collections.shuffle(chars, random);
        char[] array = Chars.toArray(chars);
        this.testString = new String(array);
      }
    
      private char randomAlpha() {
        return ALPHA.charAt(random.nextInt(ALPHA.length()));
      }
    
      private char randomNonAlpha() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.8K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

          char[] chars = Chars.toArray(Arrays.asList(elements));
          return Lists.charactersOf(String.copyValueOf(chars));
        }
      }
    
      public static class CharactersOfCharSequenceGenerator extends TestCharacterListGenerator {
        @Override
        public List<Character> create(Character[] elements) {
          char[] chars = Chars.toArray(Arrays.asList(elements));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 5K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/lang/StringUtilTest.java

            }
            char[] chars = new char[0];
            assertThat(StringUtil.newStringUnsafe(chars), is(""));
            chars = new char[] { 'a', 'b', 'c' };
            assertThat(StringUtil.newStringUnsafe(chars), is("abc"));
            chars = new char[] { 'a', 'b', 'c', ' ' };
            assertThat(StringUtil.newStringUnsafe(chars), is("abc "));
        }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/lang/StringUtil.java

            if (isEmpty(name)) {
                return name;
            }
            final char[] chars = name.toCharArray();
            if (chars.length >= 2 && Character.isUpperCase(chars[0]) && Character.isUpperCase(chars[1])) {
                return name;
            }
            chars[0] = Character.toLowerCase(chars[0]);
            return new String(chars);
        }
    
        /**
         * JavaBeansの仕様にしたがってキャピタライズを行ないます。大文字が2つ以上続く場合は、小文字にならないので注意してください。
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

      private static final ImmutableMap<Character, String> SIMPLE_REPLACEMENTS =
          ImmutableMap.of(
              '\n', "<newline>",
              '\t', "<tab>",
              '&', "<and>");
      private static final char[] NO_CHARS = new char[0];
    
      public void testReplacements() throws IOException {
        // In reality this is not a very sensible escaper to have (if you are only
        // escaping elements from a map you would use a ArrayBasedCharEscaper).
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (1)
  7. guava-testlib/src/com/google/common/collect/testing/TestCharacterListGenerator.java

     * limitations under the License.
     */
    
    package com.google.common.collect.testing;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.testing.SampleElements.Chars;
    import java.util.List;
    
    /**
     * Generates {@code List<Character>} instances for test suites.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

              HashTestUtils.randomLowSurrogate(new Random())
            });
      }
    
      private static void assertPutString(char[] chars) {
        Hasher h1 = new NonStreamingVersion().newHasher();
        Hasher h2 = new NonStreamingVersion().newHasher();
        String s = new String(chars);
        // this is the correct implementation of the spec
        for (int i = 0; i < s.length(); i++) {
          h1.putChar(s.charAt(i));
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/AbstractNonStreamingHashFunctionTest.java

              HashTestUtils.randomLowSurrogate(new Random())
            });
      }
    
      private static void assertPutString(char[] chars) {
        Hasher h1 = new NonStreamingVersion().newHasher();
        Hasher h2 = new NonStreamingVersion().newHasher();
        String s = new String(chars);
        // this is the correct implementation of the spec
        for (int i = 0; i < s.length(); i++) {
          h1.putChar(s.charAt(i));
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/hash/Murmur3_32HashFunction.java

    import static com.google.common.base.Preconditions.checkState;
    import static com.google.common.primitives.UnsignedBytes.toInt;
    
    import com.google.common.base.Charsets;
    import com.google.common.primitives.Chars;
    import com.google.common.primitives.Ints;
    import com.google.common.primitives.Longs;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.Immutable;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jun 15 20:59:00 GMT 2022
    - 11.9K bytes
    - Viewed (0)
Back to top