Search Options

Results per page
Sort
Preferred Languages
Advance

Results 311 - 320 of 949 for arra (0.02 sec)

  1. 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)
  2. 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)
  3. 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)
  4. guava/src/com/google/common/net/InetAddresses.java

      private InetAddresses() {}
    
      /**
       * Returns an {@link Inet4Address}, given a byte array representation of the IPv4 address.
       *
       * @param bytes byte array representing an IPv4 address (should be of length 4)
       * @return {@link Inet4Address} corresponding to the supplied byte array
       * @throws IllegalArgumentException if a valid {@link Inet4Address} can not be created
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 19 21:24:11 UTC 2025
    - 47.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/HashBiMap.java

      }
    
      /** Returns an int array of the specified size, filled with ABSENT. */
      private static int[] createFilledWithAbsent(int size) {
        int[] array = new int[size];
        Arrays.fill(array, ABSENT);
        return array;
      }
    
      /** Equivalent to {@code Arrays.copyOf(array, newSize)}, save that the new elements are ABSENT. */
      private static int[] expandAndFillWithAbsent(int[] array, int newSize) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcShareEnumTest.java

            shareInfo2.remark = "Remark for Share2";
    
            // Create ShareInfoCtr1 with the shares
            srvsvc.ShareInfoCtr1 shareInfoCtr1 = new srvsvc.ShareInfoCtr1();
            shareInfoCtr1.count = 2;
            shareInfoCtr1.array = new srvsvc.ShareInfo1[] { shareInfo1, shareInfo2 };
    
            // Inject the ShareInfoCtr1 using reflection
            Field infoField = srvsvc.ShareEnumAll.class.getDeclaredField("info");
            infoField.setAccessible(true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/CompoundOrdering.java

      final Comparator<? super T>[] comparators;
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Comparator<? super T> primary, Comparator<? super T> secondary) {
        this.comparators = (Comparator<? super T>[]) new Comparator<?>[] {primary, secondary};
      }
    
      @SuppressWarnings("unchecked") // Generic array creation
      CompoundOrdering(Iterable<? extends Comparator<? super T>> comparators) {
        this.comparators =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      }
    
      /** constructor creates array of given size with all elements zero */
      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
        double[] a = null;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 14.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/BinaryConversionUtil.java

        /**
         * Do not instantiate.
         */
        protected BinaryConversionUtil() {
        }
    
        /**
         * Converts to a {@literal byte} array.
         *
         * @param o
         *            The object to convert
         * @return The {@literal byte} array
         */
        public static byte[] toBinary(final Object o) {
            if (o instanceof byte[]) {
                return (byte[]) o;
            } else if (o == null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/core/stream/StreamUtilTest.java

        public void test_ofValues() {
            String[] values = { "value1", "value2" };
            StreamUtil.stream(values[0], values[1]).of(s -> {
                Object[] array = s.toArray();
                for (int i = 0; i < 2; i++) {
                    assertEquals(values[i], array[i]);
                }
            });
        }
    
        public void test_ofNull() {
            assertEquals(0, (int) StreamUtil.stream().get(s -> s.toArray().length));
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 1.7K bytes
    - Viewed (0)
Back to top