Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,274 for arrayOf (1.14 sec)

  1. guava-tests/test/com/google/common/collect/IteratorsTest.java

        String[] array = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(new String[0], array));
      }
    
      @GwtIncompatible // Iterators.toArray(Iterator, Class)
      public void testToArraySingleton() {
        Iterator<String> iterator = singletonList("a").iterator();
        String[] array = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(new String[] {"a"}, array));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/util/SecureKeyManager.java

                // Additional passes with different patterns for enhanced security
                Arrays.fill(array, (byte) 0xFF);
                Arrays.fill(array, (byte) 0xAA);
                Arrays.fill(array, (byte) 0x55);
                Arrays.fill(array, (byte) 0);
            }
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

              array[i] = counter.getAndIncrement();
            }
            builder.addAll(ImmutableDoubleArray.copyOf(array));
          }
        },
        ADD_LARGER_ARRAY {
          @Override
          void doIt(ImmutableDoubleArray.Builder builder, AtomicInteger counter) {
            double[] array = new double[random.nextInt(200) + 200];
            for (int i = 0; i < array.length; i++) {
              array[i] = counter.getAndIncrement();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/SignedBytesTest.java

      private static void testSortDescending(byte[] input, byte[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        SignedBytes.sortDescending(input);
        assertThat(input).isEqualTo(expectedOutput);
      }
    
      private static void testSortDescending(
          byte[] input, int fromIndex, int toIndex, byte[] expectedOutput) {
        input = Arrays.copyOf(input, input.length);
        SignedBytes.sortDescending(input, fromIndex, toIndex);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/util/SecureCredentialStorage.java

                    bytes[byteIndex++] = (byte) (0x80 | (c & 0x3F));
                }
            }
    
            return Arrays.copyOf(bytes, byteIndex);
        }
    
        /**
         * Convert byte array to char array (UTF-8)
         */
        private char[] bytesToChars(byte[] bytes) {
            if (bytes == null) {
                return null;
            }
    
            // Decode UTF-8
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/JoinerTest.java

      private static final Iterable<Integer> iterable = Arrays.<Integer>asList();
      private static final Iterable<Integer> iterable1 = Arrays.asList(1);
      private static final Iterable<Integer> iterable12 = Arrays.asList(1, 2);
      private static final Iterable<Integer> iterable123 = Arrays.asList(1, 2, 3);
      private static final Iterable<@Nullable Integer> iterableNull = Arrays.asList((Integer) null);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

            if (this.password != null) {
                // Multi-pass secure wipe of password char array
                Arrays.fill(this.password, '\0');
                Arrays.fill(this.password, '\uFFFF');
                Arrays.fill(this.password, '\uAAAA');
                Arrays.fill(this.password, '\u5555');
                Arrays.fill(this.password, '\0');
                this.password = null;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/util/GsaConfigParser.java

        }
    
        /**
         * Sets the array of web protocols to recognize for URL classification.
         *
         * @param webProtocols array of protocol prefixes (e.g., "http:", "https:")
         */
        public void setWebProtocols(final String[] webProtocols) {
            this.webProtocols = webProtocols;
        }
    
        /**
         * Sets the array of file protocols to recognize for URL classification.
         *
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/util/JvmUtil.java

         *
         * @param values the array of JVM options to filter
         * @return the filtered array of JVM options applicable to the current Java version
         */
        public static String[] filterJvmOptions(final String[] values) {
            final int version = getJavaVersion();
            return Arrays.stream(values).map(s -> {
                final Matcher matcher = VERSION_PREFIX_PATTERN.matcher(s);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactHashMap.java

          }
        }
      }
    
      /**
       * Resizes the internal entries array to the specified capacity, which may be greater or less than
       * the current capacity.
       */
      void resizeEntries(int newCapacity) {
        this.entries = Arrays.copyOf(requireEntries(), newCapacity);
        this.keys = Arrays.copyOf(requireKeys(), newCapacity);
        this.values = Arrays.copyOf(requireValues(), newCapacity);
      }
    
      @CanIgnoreReturnValue
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 39.6K bytes
    - Viewed (0)
Back to top