Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 119 for Short (1.28 sec)

  1. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Jun 01 09:32:35 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  2. android/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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactHashing.java

        } else if (buckets <= SHORT_MAX_SIZE) {
          return new short[buckets];
        } else {
          return new int[buckets];
        }
      }
    
      static void tableClear(Object table) {
        if (table instanceof byte[]) {
          Arrays.fill((byte[]) table, (byte) 0);
        } else if (table instanceof short[]) {
          Arrays.fill((short[]) table, (short) 0);
        } else {
          Arrays.fill((int[]) table, 0);
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Aug 02 21:41:22 UTC 2021
    - 7.1K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/primitives/super/com/google/common/primitives/ShortsMethodsForWeb.java

    public abstract class ShortsMethodsForWeb {
    
      @JsMethod(name = "Math.min", namespace = JsPackage.GLOBAL)
      public static native short min(short... array);
    
      @JsMethod(name = "Math.max", namespace = JsPackage.GLOBAL)
      public static native short max(short... array);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Oct 26 00:50:12 UTC 2023
    - 1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Defaults.java

          } else if (type == char.class) {
            return (T) Character.valueOf('\0');
          } else if (type == byte.class) {
            return (T) Byte.valueOf((byte) 0);
          } else if (type == short.class) {
            return (T) Short.valueOf((short) 0);
          } else if (type == int.class) {
            return (T) Integer.valueOf(0);
          } else if (type == long.class) {
            return (T) Long.valueOf(0L);
          } else if (type == float.class) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 23 15:09:35 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/LittleEndianDataInputStream.java

        return new DataInputStream(in).readUTF();
      }
    
      /**
       * Reads a {@code short} as specified by {@link DataInputStream#readShort()}, except using
       * little-endian byte order.
       *
       * @return the next two bytes of the input stream, interpreted as a {@code short} in little-endian
       *     byte order.
       * @throws IOException if an I/O error occurs.
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableMap.java

            } else if (key.equals(alternatingKeysAndValues[keyIndex])) {
              return alternatingKeysAndValues[keyIndex ^ 1];
            }
          }
        } else if (hashTableObject instanceof short[]) {
          short[] hashTable = (short[]) hashTableObject;
          int mask = hashTable.length - 1;
          for (int h = Hashing.smear(key.hashCode()); ; h++) {
            h &= mask;
            int keyIndex = hashTable[h] & SHORT_MASK; // unsigned read
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 15 22:32:14 UTC 2024
    - 22.7K bytes
    - Viewed (0)
  8. guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

                .addValue((byte) 3)
                .add(SHORT_NAME, 'A')
                .add(LONG_NAME, 'B')
                .addValue('C')
                .add(SHORT_NAME, (short) 4)
                .add(LONG_NAME, (short) 5)
                .addValue((short) 6)
                .add(SHORT_NAME, 7)
                .add(LONG_NAME, 8)
                .addValue(9)
                .add(SHORT_NAME, 10L)
                .add(LONG_NAME, 11L)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Shorts.java

       * @return the same value cast to {@code short} if it is in the range of the {@code short} type,
       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
        return (short) value;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/Shorts.java

       * @return the same value cast to {@code short} if it is in the range of the {@code short} type,
       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
        return (short) value;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
Back to top