- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 925 for asArray (0.11 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java
@CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE}) public void testLastIndexOf_duplicate() { E[] array = createSamplesArray(); array[getNumElements() / 2] = e0(); collection = getSubjectGenerator().create(array); assertEquals( "lastIndexOf(duplicate) should return index of last occurrence", getNumElements() / 2, getList().lastIndexOf(e0())); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 2.2K bytes - Viewed (0) -
guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java
* * @author Hayward Chan */ final class Platform { // Class.cast is not supported in GWT. static void checkCast(Class<?> clazz, Object obj) {} static <T> T[] clone(T[] array) { return (T[]) Arrays.copyOfRange(array, 0, array.length); } // TODO: Consolidate different copies in one single place. static String format(String template, Object... args) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
String[] array = {"a", "b", "c"}; return new UnmodifiableListIterator<String>() { int i; @Override public boolean hasNext() { return i < array.length; } @Override public String next() { if (!hasNext()) { throw new NoSuchElementException(); } return array[i++]; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 2.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/SerializeUtil.java
final byte[] binary = fromObjectToBinary(obj); return fromBinaryToObject(binary); } /** * Converts an object to a byte array. * * @param obj the object to serialize (must not be {@literal null}) * @return the byte array of the object */ public static byte[] fromObjectToBinary(final Object obj) { assertArgumentNotNull("obj", obj); try {
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/escape/ArrayBasedEscaperMapTest.java
// Non-null array of zero length. assertThat(fem.getReplacementArray()).isEmpty(); } public void testMapLength() { Map<Character, String> map = ImmutableMap.of( 'a', "first", 'z', "last"); ArrayBasedEscaperMap fem = ArrayBasedEscaperMap.create(map); // Array length is highest character value + 1
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Feb 18 15:41:04 UTC 2025 - 2.7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java
@SuppressWarnings("unchecked") Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length]; int i = 0; for (Object o : entries) { @SuppressWarnings("unchecked") Entry<String, String> e = (Entry<String, String>) o; array[i++] = e; } return create(array); } protected abstract Map<String, String> create(Entry<String, String>[] entries);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 14:50:24 UTC 2024 - 2.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/suggest/constants/FieldNames.java
* <li>{@link #ROLES} - The roles field.</li> * <li>{@link #FIELDS} - The fields field.</li> * <li>{@link #LANGUAGES} - The languages field.</li> * <li>{@link #ARRAY_KEY} - The key for array elements.</li> * <li>{@link #ARRAY_VALUE} - The value for array elements.</li> * <li>{@link #ANALYZER_SETTINGS_TYPE} - The analyzer settings type field.</li> * <li>{@link #ANALYZER_SETTINGS_FIELD_NAME} - The analyzer settings field name.</li>
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Fri Jul 04 14:00:23 UTC 2025 - 4.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/lang/StringUtilTest.java
final String[] array = StringUtil.split("aaa\nbbb", "\n"); assertEquals("1", 2, array.length); assertEquals("2", "aaa", array[0]); assertEquals("3", "bbb", array[1]); } /** * */ @Test public void testSplit2() { final String[] array = StringUtil.split("aaa, bbb", ", "); assertEquals("1", 2, array.length);
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 12K bytes - Viewed (0) -
android/guava/src/com/google/common/hash/PrimitiveSink.java
*/ @CanIgnoreReturnValue PrimitiveSink putByte(byte b); /** * Puts an array of bytes into this sink. * * @param bytes a byte array * @return this instance */ @CanIgnoreReturnValue PrimitiveSink putBytes(byte[] bytes); /** * Puts a chunk of an array of bytes into this sink. {@code bytes[off]} is the first byte written, * {@code bytes[off + len - 1]} is the last. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/Crc32cHashFunctionTest.java
} public void testZeros() { // Test 32 byte array of 0x00. byte[] zeros = new byte[32]; assertCrc(0x8a9136aa, zeros); } public void testZeros100() { // Test 100 byte array of 0x00. byte[] zeros = new byte[100]; assertCrc(0x07cb9ff6, zeros); } public void testFull() { // Test 32 byte array of 0xFF. byte[] fulls = new byte[32];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 6.6K bytes - Viewed (0)