Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 324 for SHORT (0.02 sec)

  1. src/test/java/jcifs/internal/dfs/DfsReferralResponseBufferTest.java

                bb.putShort((short) 20); // pathConsumed
                bb.putShort((short) 1); // numReferrals
                bb.putShort((short) 15); // tflags
                bb.putShort((short) 0); // tflags high bytes
    
                // Simple v1 referral
                bb.putShort((short) 1); // version
                bb.putShort((short) 16); // size
                bb.putShort((short) 1); // serverType
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/primitives/ShortsTest.java

                    },
                    new short[] {(short) 2, (short) 3, (short) 4}))
            .isEqualTo(1);
        assertThat(
                Shorts.indexOf(
                    new short[] {(short) 4, (short) 3, (short) 2},
                    new short[] {(short) 2, (short) 3, (short) 4}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Shorts.java

       * Returns the {@code short} value that is equal to {@code value}, if possible.
       *
       * @param value any value in the range of the {@code short} type
       * @return the {@code short} value that equals {@code value}
       * @throws IllegalArgumentException if {@code value} is greater than {@link Short#MAX_VALUE} or
       *     less than {@link Short#MIN_VALUE}
       */
      public static short checkedCast(long value) {
        short result = (short) value;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  4. guava/src/com/google/common/primitives/Shorts.java

       * Returns the {@code short} value that is equal to {@code value}, if possible.
       *
       * @param value any value in the range of the {@code short} type
       * @return the {@code short} value that equals {@code value}
       * @throws IllegalArgumentException if {@code value} is greater than {@link Short#MAX_VALUE} or
       *     less than {@link Short#MIN_VALUE}
       */
      public static short checkedCast(long value) {
        short result = (short) value;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/dfs/ReferralTest.java

            bb.putShort((short) 3);
            bb.putShort((short) 65535); // max unsigned short
            bb.putShort((short) 65535);
            bb.putShort((short) 65535);
            bb.putShort((short) 65535);
            bb.putShort((short) 65535);
            bb.putShort((short) 0);
            bb.putShort((short) 0);
            bb.putShort((short) 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 22K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/msrpc/MsrpcQueryInformationPolicyTest.java

            // Assert
            assertEquals(Short.MIN_VALUE, queryPolicy.level);
        }
    
        @Test
        void constructor_withMaximumShortValue() {
            // Arrange
            short level = Short.MAX_VALUE;
    
            // Act
            queryPolicy = new MsrpcQueryInformationPolicy(mockPolicyHandle, level, mockNdrObject);
    
            // Assert
            assertEquals(Short.MAX_VALUE, queryPolicy.level);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

                if (pattern != null) {
                    return Short.valueOf(new SimpleDateFormat(pattern).format(o));
                }
                return (short) ((java.util.Date) o).getTime();
            } else if (o instanceof Boolean) {
                return ((Boolean) o) ? (short) 1 : (short) 0;
            } else {
                return toShort(o.toString());
            }
        }
    
        private static Short toShort(final String s) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  8. 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);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  9. 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);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/rpcTest.java

                unicodeString.length = (short) 10;
                unicodeString.maximum_length = (short) 20;
                unicodeString.buffer = new short[] { 65, 66, 67 }; // A, B, C
    
                // Then: Values should be set correctly
                assertEquals((short) 10, unicodeString.length);
                assertEquals((short) 20, unicodeString.maximum_length);
                assertArrayEquals(new short[] { 65, 66, 67 }, unicodeString.buffer);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
Back to top