Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 448 for Shorts (0.04 seconds)

  1. android/guava/src/com/google/common/primitives/Shorts.java

       *
       * @param value a primitive {@code short} value
       * @return a hash code for the value
       */
      @InlineMe(replacement = "Short.hashCode(value)")
      @InlineMeValidationDisabled(
          "The hash code of a short is the int version of the short itself, so it's simplest to return"
              + " that.")
      public static int hashCode(short value) {
        return value;
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  2. guava/src/com/google/common/primitives/Shorts.java

       *
       * @param value a primitive {@code short} value
       * @return a hash code for the value
       */
      @InlineMe(replacement = "Short.hashCode(value)")
      @InlineMeValidationDisabled(
          "The hash code of a short is the int version of the short itself, so it's simplest to return"
              + " that.")
      public static int hashCode(short value) {
        return value;
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/primitives/ShortsTest.java

        assertThat(Shorts.indexOf(ARRAY234, new short[] {(short) 4})).isEqualTo(2);
        assertThat(
                Shorts.indexOf(
                    new short[] {(short) 2, (short) 3, (short) 3, (short) 3, (short) 3},
                    new short[] {(short) 3}))
            .isEqualTo(1);
        assertThat(
                Shorts.indexOf(
                    new short[] {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 27.5K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/primitives/ShortArrayAsListTest.java

          Short[] suffix = {(short) 86, (short) 99};
          Short[] all = concat(concat(prefix, elements), suffix);
          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Short[] concat(Short[] left, Short[] right) {
        Short[] result = new Short[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/hash/AbstractByteHasher.java

      public Hasher putBytes(ByteBuffer bytes) {
        update(bytes);
        return this;
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putShort(short s) {
        ByteBuffer scratch = scratch();
        scratch.putShort(s);
        return update(scratch, Shorts.BYTES);
      }
    
      @Override
      @CanIgnoreReturnValue
      public Hasher putInt(int i) {
        ByteBuffer scratch = scratch();
        scratch.putInt(i);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 12:40:17 GMT 2025
    - 3.9K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/package-info.java

     *   <li>{@link Ints}
     *       <ul>
     *         <li>{@link UnsignedInts}
     *       </ul>
     *   <li>{@link Longs}
     *       <ul>
     *         <li>{@link UnsignedLongs}
     *       </ul>
     *   <li>{@link Shorts}
     * </ul>
     *
     * <h3>General static utilities</h3>
     *
     * <ul>
     *   <li>{@link Primitives}
     * </ul>
     */
    @CheckReturnValue
    @NullMarked
    package com.google.common.primitives;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Jan 03 15:30:05 GMT 2025
    - 2K bytes
    - Click Count (0)
  7. src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java

            // Arrange
            short level = 2;
    
            // Act
            queryPolicy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject);
    
            // Assert
            assertSame(mockNdrObject, queryPolicy.info);
        }
    
        @ParameterizedTest
        @ValueSource(shorts = { 0, 1, 2, 3, 5, 10, Short.MAX_VALUE, Short.MIN_VALUE })
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 6.6K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/primitives/BytesTest.java

      }
    
      public void testToArray_withConversion() {
        byte[] array = {(byte) 0, (byte) 1, (byte) 2};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
        List<Integer> ints = Arrays.asList(0, 1, 2);
        List<Float> floats = Arrays.asList(0.0f, 1.0f, 2.0f);
        List<Long> longs = Arrays.asList(0L, 1L, 2L);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      }
    
      public void testToArray_withConversion() {
        double[] array = {0.0, 1.0, 2.0};
    
        List<Byte> bytes = Arrays.asList((byte) 0, (byte) 1, (byte) 2);
        List<Short> shorts = Arrays.asList((short) 0, (short) 1, (short) 2);
        List<Integer> ints = Arrays.asList(0, 1, 2);
        List<Float> floats = Arrays.asList(0.0f, 1.0f, 2.0f);
        List<Long> longs = Arrays.asList(0L, 1L, 2L);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 11 20:45:32 GMT 2025
    - 30.9K bytes
    - Click Count (0)
  10. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

                    (int) (int) (short) 'd', (int) (int) (short) 'e', (int) (short) 'f', (int) (short) 'g', (int) (short) 'h',
                    (int) (short) 'i', (int) (short) 'j', (int) (short) 'k', (int) (short) 'l', (int) (short) 'm', (int) (short) 'n',
                    (int) (short) 'o', (int) (short) 'p', (int) (short) 'q', (int) (short) 'r');
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 60.8K bytes
    - Click Count (0)
Back to Top