Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for Ismail (0.23 sec)

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

       * @param value any {@code long} value
       * @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;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  2. guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    
    @SuppressWarnings("unused") // Nested enums used reflectively in setUp.
    public class EnumsBenchmark {
    
      @Param({"Small", "Medium", "Large"})
      String enumSize;
    
      @Param({"0.2", "0.8"})
      float hitRate;
    
      // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...).
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedLongs.java

     * number.
     *
     * <p>Users of these utilities must be <i>extremely careful</i> not to mix up signed and unsigned
     * {@code long} values. When possible, it is recommended that the {@link UnsignedLong} wrapper class
     * be used, at a small efficiency penalty, to enforce the distinction in the type system.
     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/PrimitivesExplained#unsigned-support">unsigned
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  4. android/guava-tests/benchmark/com/google/common/base/EnumsBenchmark.java

    import java.util.ArrayList;
    import java.util.Collections;
    import java.util.List;
    
    @SuppressWarnings("unused") // Nested enums used reflectively in setUp.
    public class EnumsBenchmark {
    
      @Param({"Small", "Medium", "Large"})
      String enumSize;
    
      @Param({"0.2", "0.8"})
      float hitRate;
    
      // We could avoid the raw type here by initializing this with a ternary (? SmallEnum.class : ...).
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Longs.java

       *
       * @throws IllegalArgumentException if {@code bytes} has fewer than 8 elements
       */
      public static long fromByteArray(byte[] bytes) {
        checkArgument(bytes.length >= BYTES, "array too small: %s < %s", bytes.length, BYTES);
        return fromBytes(
            bytes[0], bytes[1], bytes[2], bytes[3], bytes[4], bytes[5], bytes[6], bytes[7]);
      }
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java

        Random random = new Random(0);
        Multiset<Integer> elements = HashMultiset.create();
        MinMaxPriorityQueue<Integer> queue = MinMaxPriorityQueue.create();
        int range = 10_000; // range should be small enough that equal elements occur semi-frequently
        for (int iter = 0; iter < reduceIterationsIfGwt(1000); iter++) {
          for (int i = 0; i < 100; i++) {
            Integer element = random.nextInt(range);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 36.1K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       SMALL_DELAY_MS}, {@code MEDIUM_DELAY_MS}, {@code LONG_DELAY_MS}. The idea here is that a
     *       SHORT is always discriminable from zero time, and always allows enough time for the small
     *       amounts of computation (creating a thread, calling a few methods, etc) needed to reach a
     *       timeout point. Similarly, a SMALL is always discriminable as larger than SHORT and smaller
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. CONTRIBUTING.md

    =================
    
    Thank you so much for wanting to contribute to Guava! Here are a few important
    things you should know about contributing:
    
    1.  API changes require discussion, use cases, etc. Code comes later.
    2.  Pull requests are great for small fixes for bugs, documentation, etc.
    3.  Pull requests are not merged directly into the master branch.
    4.  Code contributions require signing a Google CLA.
    
    API changes
    -----------
    
    Plain Text
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 3.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    @SuppressWarnings("deprecation") // many tests of deprecated methods
    public class MapMakerInternalMapTest extends TestCase {
    
      static final int SMALL_MAX_SIZE = DRAIN_THRESHOLD * 5;
    
      private static <K, V>
          MapMakerInternalMap<K, V, ? extends InternalEntry<K, V, ?>, ? extends Segment<K, V, ?, ?>>
              makeMap(MapMaker maker) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

    import junit.framework.TestCase;
    
    /** @author Charles Fry */
    @SuppressWarnings("deprecation") // many tests of deprecated methods
    public class MapMakerInternalMapTest extends TestCase {
    
      static final int SMALL_MAX_SIZE = DRAIN_THRESHOLD * 5;
    
      private static <K, V>
          MapMakerInternalMap<K, V, ? extends InternalEntry<K, V, ?>, ? extends Segment<K, V, ?, ?>>
              makeMap(MapMaker maker) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
Back to top