Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 925 for asArray (0.15 sec)

  1. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

        ImmutableList<Integer>[] array =
            (ImmutableList<Integer>[]) new ImmutableList<?>[] {ImmutableList.of(1)};
        TypeToken<ImmutableList<Integer>[]> type = new TypeToken<ImmutableList<Integer>[]>() {};
        map.putInstance(type, array);
        assertEquals(1, map.size());
        assertThat(map.getInstance(type)).asList().containsExactly(array[0]);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/msrpc/lsarpc.java

            }
        }
    
        /**
         * LSA SID array structure for batch SID operations.
         */
        public static class LsarSidArray extends NdrObject {
    
            /**
             * Default constructor for LsarSidArray.
             */
            public LsarSidArray() {
                // Default constructor
            }
    
            /** Number of SIDs in the array. */
            public int num_sids;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 42.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/fess/util/MemoryUtilTest.java

        }
    
        public void test_sizeOf_arrayVariations() {
            // Empty array
            assertEquals(0L, MemoryUtil.sizeOf(new String[0]));
            assertEquals(0L, MemoryUtil.sizeOf(new Object[0]));
    
            // Array with null elements
            assertEquals(0L, MemoryUtil.sizeOf(new String[] { null, null }));
    
            // Mixed content array
            assertEquals(84L, MemoryUtil.sizeOf(new Object[] { "test", 123, null }));
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/fess/entity/FessUserTest.java

        }
    
        // Helper method to assert array equality
        private void assertArrayEquals(String[] expected, String[] actual) {
            if (expected == null && actual == null) {
                return;
            }
            assertNotNull("Expected array is null but actual is not", expected);
            assertNotNull("Actual array is null but expected is not", actual);
            assertEquals("Array lengths differ", expected.length, actual.length);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/pac/kerberos/KerberosTicketTest.java

        }
    
        /**
         * Creates a byte array representing a Kerberos ticket for testing purposes.
         * @param version Kerberos version
         * @param realm Server realm
         * @param principalName Server principal name
         * @param encType Encryption type
         * @param encryptedData Encrypted data
         * @param unknownTag Optional unknown tag number to test error handling
         * @return A byte array representing the ticket
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

            @SuppressWarnings("unchecked") // These come from Entry<K, V> objects somewhere.
            V value = (V) elements[i];
            array[i] = mapEntry(k, value);
          }
          return multimapGenerator.create((Object[]) array).get(k);
        }
      }
    
      static class MultimapAsMapGetGenerator<K, V, M extends Multimap<K, V>>
          extends MultimapGetGenerator<K, V, M> {
    
        public MultimapAsMapGetGenerator(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 26.8K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

     *
     * <p>This class is emulated in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 04 01:39:13 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/Platform.java

     *
     * <p>This class is emulated in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 04 01:39:13 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeResponseTest.java

            buffer.putInt(8); // File name length
            buffer.put("test.txt".getBytes("UTF-16LE"));
    
            assertThrows(SMBProtocolDecodingException.class, () -> {
                response.readParametersWireFormat(buffer.array(), 0, buffer.array().length);
            });
        }
    
        @Test
        @DisplayName("Test readParametersWireFormat with buffer offset")
        void testReadParametersWireFormatWithBufferOffset() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/util/SecureCredentialStorage.java

            SecretKey tempKey = keyFactory.generateSecret(keySpec);
            return new SecretKeySpec(tempKey.getEncoded(), KEY_ALGORITHM);
        }
    
        /**
         * Convert char array to byte array (UTF-8)
         */
        private byte[] charsToBytes(char[] chars) {
            if (chars == null) {
                return null;
            }
    
            // Use UTF-8 encoding
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top