Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 127 for nCopies (0.06 sec)

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

        EnumHashBiMap<Currency, Country> bimap2 = EnumHashBiMap.create(emptyBimap2);
        assertTrue(bimap2.isEmpty());
      }
    
      public void testEnumHashBiMapConstructor() {
        /* Test that it copies existing entries. */
        EnumHashBiMap<Currency, String> bimap1 = EnumHashBiMap.create(Currency.class);
        bimap1.put(Currency.DOLLAR, "dollar");
        EnumHashBiMap<Currency, String> bimap2 = EnumHashBiMap.create(bimap1);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Oct 28 16:03:47 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

       * (used as the reference iterator) against a {@code PeekingIterator} that *wraps* such an
       * iterator (used as the target iterator).
       *
       * <p>This IteratorTester makes copies of the master so that it can later verify that {@link
       * PeekingIterator#remove()} removes the same elements as the reference's iterator {@code
       * remove()}.
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 17:50:58 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  3. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

      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) {
        // start substituting the arguments into the '%s' placeholders
        StringBuilder builder = new StringBuilder(template.length() + 16 * args.length);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/EncodableTest.java

            for (int i = 0; i < n; i++) {
                a[i] = (byte) i;
            }
            return a;
        }
    
        @ParameterizedTest
        @MethodSource("byteEncodableArgs")
        @DisplayName("encode() copies bytes correctly and returns size")
        void encodeCopiesAndReportsSize(byte[] src, int off, int len, int dstIndex) {
            Encodable enc = new ByteEncodable(src, off, len);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/ByteStreams.java

       *       via madvise(2), but that obviously doesn't exist in java.
       *   <li>Ordinary copy. Kernel copies bytes into a kernel buffer, from a kernel buffer into a
       *       userspace buffer (byte[] or ByteBuffer), then copies them from that buffer into the
       *       destination channel.
       * </ol>
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  6. guava/pom.xml

              <!-- We add the link ourselves so that we can choose Java 25 over the version that -source suggests. -->
              <detectJavaApiLink>false</detectJavaApiLink>
              <offlineLinks>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 21:36:50 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

                guid[i] = (byte) i;
            }
    
            // Call the method
            int bytesRead = response.readBytesWireFormat(guid, 0);
    
            // Assertions
            // When CAP_EXTENDED_SECURITY is set, it only copies GUID but doesn't update bufferIndex
            assertEquals(0, bytesRead);
            assertArrayEquals(guid, serverData.guid);
            assertEquals("", serverData.oemDomainName);
        }
    
        @Test
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/Resources.java

                return true;
              }
    
              @Override
              public List<String> getResult() {
                return result;
              }
            });
      }
    
      /**
       * Copies all bytes from a URL to an output stream.
       *
       * @param from the URL to read from
       * @param to the output stream
       * @throws IOException if an I/O error occurs
       */
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  9. android/guava/pom.xml

              <!-- We add the link ourselves so that we can choose Java 25 over the version that -source suggests. -->
              <detectJavaApiLink>false</detectJavaApiLink>
              <offlineLinks>
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Nov 17 21:36:50 UTC 2025
    - 9.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/Kerb5AuthenticatorTest.java

            assertTrue(ex.getMessage().contains("Refreshing credentials is not supported"));
        }
    
        @Test
        @DisplayName("clone: copies all relevant fields")
        void clone_copiesFields() {
            Subject subj = new Subject();
            Kerb5Authenticator auth = new Kerb5Authenticator(subj, "DOM", "user", "pass");
            auth.setUser("alice");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
Back to top