Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 93 for Tanghe (0.47 sec)

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

       * @throws IllegalArgumentException if {@code value} is negative or greater than 255
       */
      @CanIgnoreReturnValue
      public static byte checkedCast(long value) {
        checkArgument(value >> Byte.SIZE == 0, "out of range: %s", value);
        return (byte) value;
      }
    
      /**
       * Returns the {@code byte} value that, when treated as unsigned, is nearest in value to {@code
       * value}.
       *
       * @param value any {@code long} value
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/net/HostAndPortTest.java

        checkFromStringCase("192.0.2.2:૮૩", 77, null, -1, false);
        checkFromStringCase("[2001::2]:૮૫", 77, null, -1, false);
      }
    
      public void testFromStringBadPort() {
        // Out-of-range ports.
        checkFromStringCase("google.com:65536", 1, null, 99, false);
        checkFromStringCase("google.com:9999999999", 1, null, 99, false);
        // Invalid port parts.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 11:19:47 GMT 2023
    - 10K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/CompactHashSet.java

       *   <li>null, if no entries have yet been added to the map
       * </ul>
       */
      @CheckForNull private transient Object table;
    
      /**
       * Contains the logical entries, in the range of [0, size()). The high bits of each int are the
       * part of the smeared hash of the element not covered by the hashtable mask, whereas the low bits
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 05 21:38:59 GMT 2024
    - 24K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/math/PairedStats.java

       * guaranteed to be exactly +/-1 even when the data are perfectly (anti-)correlated, due to
       * numerical errors. However, it is guaranteed to be in the inclusive range [-1, +1].
       *
       * <h3>Non-finite values</h3>
       *
       * <p>If the dataset contains any non-finite values ({@link Double#POSITIVE_INFINITY}, {@link
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        Random random = new Random();
        int nKeys = keys.size();
        long blah = 0;
        for (int i = 0; i < reps; i++) {
          Integer key = keys.get(random.nextInt(nKeys));
          // This range is [-5, 4] - slight negative bias so we often hit zero, which brings the
          // auto-removal of zeroes into play.
          int delta = random.nextInt(10) - 5;
          blah += delta;
          if (delta >= 0) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed May 09 15:17:25 GMT 2018
    - 16.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multiset.java

     *   <li>{@link LinkedHashMultiset}
     *   <li>{@link TreeMultiset}
     *   <li>{@link EnumMultiset}
     *   <li>{@link ConcurrentHashMultiset}
     * </ul>
     *
     * <p>If your values may be zero, negative, or outside the range of an int, you may wish to use
     * {@link com.google.common.util.concurrent.AtomicLongMap} instead. Note, however, that unlike
     * {@code Multiset}, {@code AtomicLongMap} does not automatically remove zeros.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 19.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/ByteSource.java

      public static ByteSource concat(ByteSource... sources) {
        return concat(ImmutableList.copyOf(sources));
      }
    
      /**
       * Returns a view of the given byte array as a {@link ByteSource}. To view only a specific range
       * in the array, use {@code ByteSource.wrap(b).slice(offset, length)}.
       *
       * <p>Note that the given byte array may be passed directly to methods on, for example, {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        TreeRangeSet<Integer> set = TreeRangeSet.create();
        Range<Integer> range = Range.closedOpen(0, 5);
        set.add(range);
        set.subRangeSet(range).add(range);
      }
    
      public void testComplement() {
        for (Range<Integer> range1 : QUERY_RANGES) {
          for (Range<Integer> range2 : QUERY_RANGES) {
            TreeRangeSet<Integer> rangeSet = TreeRangeSet.create();
            rangeSet.add(range1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeRangeSet.java

        checkNotNull(range);
        Entry<Cut<C>, Range<C>> floorEntry = rangesByLowerBound.floorEntry(range.lowerBound);
        return (floorEntry != null && floorEntry.getValue().encloses(range))
            ? floorEntry.getValue()
            : null;
      }
    
      @Override
      public Range<C> span() {
        Entry<Cut<C>, Range<C>> firstEntry = rangesByLowerBound.firstEntry();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 32.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeRangeMap.java

          extends AbstractMapEntry<Range<K>, V> {
        private final Range<K> range;
        private final V value;
    
        RangeMapEntry(Cut<K> lowerBound, Cut<K> upperBound, V value) {
          this(Range.create(lowerBound, upperBound), value);
        }
    
        RangeMapEntry(Range<K> range, V value) {
          this.range = range;
          this.value = value;
        }
    
        @Override
        public Range<K> getKey() {
          return range;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 21.9K bytes
    - Viewed (0)
Back to top