Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Adrian (0.23 sec)

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

     *
     * <p>See the Guava User Guide article on <a
     * href="https://github.com/google/guava/wiki/PrimitivesExplained#unsigned-support">unsigned
     * primitive utilities</a>.
     *
     * @author Louis Wasserman
     * @author Brian Milch
     * @author Colin Evans
     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class UnsignedLongs {
      private UnsignedLongs() {}
    
    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)
  2. guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.Equivalence;
    import com.google.common.collect.MapMakerInternalMap.InternalEntry;
    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)
  3. android/guava-tests/test/com/google/common/collect/MapMakerInternalMapTest.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.collect;
    
    import static com.google.common.collect.MapMakerInternalMap.DRAIN_THRESHOLD;
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.base.Equivalence;
    import com.google.common.collect.MapMakerInternalMap.InternalEntry;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 35.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/QueuesTest.java

      }
    
      private static <T> int drain(
          BlockingQueue<T> q,
          Collection<? super T> buffer,
          int maxElements,
          long timeout,
          TimeUnit unit,
          boolean interruptibly)
          throws InterruptedException {
        return interruptibly
            ? Queues.drain(q, buffer, maxElements, timeout, unit)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/io/ReaderInputStream.java

            if (result.isOverflow()) {
              // Not enough room in output buffer--drain it, creating a bigger buffer if necessary.
              startDraining(true);
              continue DRAINING;
            } else if (result.isUnderflow()) {
              // If encoder underflows, it means either:
              // a) the final flush() succeeded; next drain (then done)
              // b) we encoded all of the input; next flush
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 9.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

       *
       * <p>This must be a (2^n)-1 as it is used as a mask.
       */
      static final int DRAIN_THRESHOLD = 0x3F;
    
      /**
       * Maximum number of entries to be drained in a single cleanup run. This applies independently to
       * the cleanup queue and both reference queues.
       */
      // TODO(fry): empirically optimize this
      static final int DRAIN_MAX = 16;
    
      // Fields
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/cache/LocalCacheTest.java

            assertTrue(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) {
              map.get(keyOne);
            }
            assertFalse(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) {
              map.get(keyOne);
              assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD);
            }
    
            // get over many different keys
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

            assertTrue(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD / 2; i++) {
              map.get(keyOne);
            }
            assertFalse(segment.recencyQueue.isEmpty());
    
            for (int i = 0; i < DRAIN_THRESHOLD * 2; i++) {
              map.get(keyOne);
              assertTrue(segment.recencyQueue.size() <= DRAIN_THRESHOLD);
            }
    
            // get over many different keys
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/UnsignedLongsTest.java

    import java.math.BigInteger;
    import java.util.Arrays;
    import java.util.Comparator;
    import java.util.List;
    import java.util.Random;
    import junit.framework.TestCase;
    
    /**
     * Tests for UnsignedLongs
     *
     * @author Brian Milch
     * @author Louis Wasserman
     */
    @GwtCompatible(emulated = true)
    public class UnsignedLongsTest extends TestCase {
      private static final long LEAST = 0L;
      private static final long GREATEST = 0xffffffffffffffffL;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:36:17 GMT 2024
    - 13.2K bytes
    - Viewed (0)
  10. guava/src/com/google/common/cache/LocalCache.java

       *
       * <p>This must be a (2^n)-1 as it is used as a mask.
       */
      static final int DRAIN_THRESHOLD = 0x3F;
    
      /**
       * Maximum number of entries to be drained in a single cleanup run. This applies independently to
       * the cleanup queue and both reference queues.
       */
      // TODO(fry): empirically optimize this
      static final int DRAIN_MAX = 16;
    
      // Fields
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
Back to top