Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 90 for arrays (0.22 sec)

  1. android/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 = Collections.singletonList("a").iterator();
        String[] array = Iterators.toArray(iterator, String.class);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  2. 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 = Collections.singletonList("a").iterator();
        String[] array = Iterators.toArray(iterator, String.class);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/EventListenerTest.kt

      @Test
      fun responseBodyFailHttp1OverHttps() {
        enableTlsWithTunnel()
        server.protocols = Arrays.asList(Protocol.HTTP_1_1)
        responseBodyFail(Protocol.HTTP_1_1)
      }
    
      @Test
      fun responseBodyFailHttp2OverHttps() {
        platform.assumeHttp2Support()
        enableTlsWithTunnel()
        server.protocols = Arrays.asList(Protocol.HTTP_2, Protocol.HTTP_1_1)
        responseBodyFail(Protocol.HTTP_2)
      }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      private static byte[] prepended(byte b, byte[] array) {
        byte[] out = new byte[array.length + 1];
        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
        return out;
      }
    
      @GwtIncompatible // java.nio.ByteBuffer
      private static byte[] toByteArray(int h) {
        return ByteBuffer.allocate(4).putInt(h).array();
      }
    
      public void testNewEnumSet_empty() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Iterators.java

      }
    
      private static final class ArrayItr<T extends @Nullable Object>
          extends AbstractIndexedListIterator<T> {
        static final UnmodifiableListIterator<Object> EMPTY = new ArrayItr<>(new Object[0], 0);
    
        private final T[] array;
    
        ArrayItr(T[] array, int position) {
          super(array.length, position);
          this.array = array;
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              // there's a way around creating the separate sortedKeys array, and if we're allocating
              // one array of size n, we might as well allocate two -- to say nothing of the allocation
              // done in Arrays.sort.
              for (int i = 0; i < size; i++) {
                // We're careful to put only K instances in.
                if (i > 0 && comparator.compare((K) sortedKeys[i - 1], (K) sortedKeys[i]) == 0) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Iterators.java

      }
    
      private static final class ArrayItr<T extends @Nullable Object>
          extends AbstractIndexedListIterator<T> {
        static final UnmodifiableListIterator<Object> EMPTY = new ArrayItr<>(new Object[0], 0);
    
        private final T[] array;
    
        ArrayItr(T[] array, int position) {
          super(array.length, position);
          this.array = array;
        }
    
        @Override
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 00:14:39 GMT 2024
    - 50.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/CharMatcher.java

          checkNotNull(sequence);
          return "";
        }
    
        @Override
        public String replaceFrom(CharSequence sequence, char replacement) {
          char[] array = new char[sequence.length()];
          Arrays.fill(array, replacement);
          return new String(array);
        }
    
        @Override
        public String replaceFrom(CharSequence sequence, CharSequence replacement) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.7K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/CharMatcher.java

          checkNotNull(sequence);
          return "";
        }
    
        @Override
        public String replaceFrom(CharSequence sequence, char replacement) {
          char[] array = new char[sequence.length()];
          Arrays.fill(array, replacement);
          return new String(array);
        }
    
        @Override
        public String replaceFrom(CharSequence sequence, CharSequence replacement) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 53.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportImpl.java

    import java.io.OutputStream;
    import java.net.InetAddress;
    import java.net.InetSocketAddress;
    import java.net.Socket;
    import java.net.SocketException;
    import java.security.MessageDigest;
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.LinkedList;
    import java.util.List;
    import java.util.ListIterator;
    import java.util.Locale;
    import java.util.Set;
    import java.util.concurrent.Semaphore;
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Wed Jan 18 23:47:00 GMT 2023
    - 67K bytes
    - Viewed (0)
Back to top