Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 1,305 for arrays (0.07 sec)

  1. guava/src/com/google/common/reflect/AbstractInvocationHandler.java

     * the License.
     */
    
    package com.google.common.reflect;
    
    import java.lang.reflect.InvocationHandler;
    import java.lang.reflect.Method;
    import java.lang.reflect.Proxy;
    import java.util.Arrays;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Abstract implementation of {@link InvocationHandler} that handles {@link Object#equals}, {@link
     * Object#hashCode} and {@link Object#toString}. For example:
     *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/io/ByteStreams.java

          }
        }
      }
    
      // The Arrays.equals(<arraytype>, int, int, <arraytype>, int, int) methods were not added until
      // Java 9. This function is just returns the same result that
      // Arrays.equals(array1, 0, count, array2, 0, count) would. It assumes that both arrays have a
      // length of at least count.
      private static boolean arraysEqual(byte[] array1, byte[] array2, int count) {
        for (int i = 0; i < count; i++) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 31.1K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

      }
    
      static void testSort(long[] input, long[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedLongs.sort(input);
        assertThat(input).isEqualTo(expected);
      }
    
      static void testSort(long[] input, int from, int to, long[] expected) {
        input = Arrays.copyOf(input, input.length);
        UnsignedLongs.sort(input, from, to);
        assertThat(input).isEqualTo(expected);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.8K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MapGenerators.java

    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.Iterables.getOnlyElement;
    import static com.google.common.collect.testing.Helpers.mapEntry;
    import static java.util.Arrays.asList;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.collect.ImmutableMap;
    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Maps;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            assertNotNull(salt1);
            assertNotNull(salt2);
            assertEquals(32, salt1.length); // 32 bytes as per SMB 3.1.1 spec
            assertEquals(32, salt2.length);
            assertFalse(java.util.Arrays.equals(salt1, salt2)); // Should be different
        }
    
        @Test
        @DisplayName("Test session initialization")
        public void testSessionInitialization() throws CIFSException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

        @Test
        @DisplayName("Should handle different file IDs")
        void testDifferentFileIds() {
            // Given
            byte[] fileId1 = new byte[16];
            Arrays.fill(fileId1, (byte) 0x11);
    
            byte[] fileId2 = new byte[16];
            Arrays.fill(fileId2, (byte) 0xFF);
    
            byte[] fileId3 = new byte[16];
            for (int i = 0; i < 16; i++) {
                fileId3[i] = (byte) i;
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

        } catch (Exception e) { // sneaky checked exception
          throw new RuntimeException(Arrays.toString(stimuli), e);
        }
      }
    
      private void recurse(int level) {
        // We're going to reuse the stimuli array 3^steps times by overwriting it
        // in a recursive loop.  Sneaky.
        if (level == stimuli.length) {
          // We've filled the array.
          compareResultsForThisListOfStimuli();
        } else {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       *     ImmutableSetMultimap.<Character, Character>builder()
       *         .putAll('b', Arrays.asList('a', 'n', 'a', 'n', 'a'))
       *         .putAll('a', Arrays.asList('p', 'p', 'l', 'e'))
       *         .putAll('c', Arrays.asList('a', 'r', 'r', 'o', 't'))
       *         .putAll('a', Arrays.asList('s', 'p', 'a', 'r', 'a', 'g', 'u', 's'))
       *         .putAll('c', Arrays.asList('h', 'e', 'r', 'r', 'y'))
       *         .build();
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb1/smb1/DosErrorTest.java

    import static org.junit.jupiter.api.Assertions.assertNotNull;
    import static org.junit.jupiter.api.Assertions.assertTrue;
    import static org.mockito.Mockito.mock;
    import static org.mockito.Mockito.verify;
    
    import java.util.Arrays;
    import java.util.Optional;
    
    import org.junit.jupiter.api.DisplayName;
    import org.junit.jupiter.api.Test;
    
    /**
     * Tests for {@link DosError}.  Since {@link DosError} only contains
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableList.java

        Object[] array = new Object[12 + others.length];
        array[0] = e1;
        array[1] = e2;
        array[2] = e3;
        array[3] = e4;
        array[4] = e5;
        array[5] = e6;
        array[6] = e7;
        array[7] = e8;
        array[8] = e9;
        array[9] = e10;
        array[10] = e11;
        array[11] = e12;
        System.arraycopy(others, 0, array, 12, others.length);
        return construct(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 27.5K bytes
    - Viewed (0)
Back to top