Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 443 for whale (0.13 sec)

  1. android/guava/src/com/google/common/io/BaseEncoding.java

          int bitsProcessed = 0;
          while (bitsProcessed < len * 8) {
            int charIndex = (int) (bitBuffer >>> (bitOffset - bitsProcessed)) & alphabet.mask;
            target.append(alphabet.encode(charIndex));
            bitsProcessed += alphabet.bitsPerChar;
          }
          if (paddingChar != null) {
            while (bitsProcessed < alphabet.bytesPerChunk * 8) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Mar 15 16:33:32 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/features/ListFeature.java

    import java.util.List;
    import java.util.Set;
    
    /**
     * Optional features of classes derived from {@code List}.
     *
     * @author George van den Driessche
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    public enum ListFeature implements Feature<List> {
      SUPPORTS_SET,
      SUPPORTS_ADD_WITH_INDEX(CollectionFeature.SUPPORTS_ADD),
      SUPPORTS_REMOVE_WITH_INDEX(CollectionFeature.SUPPORTS_REMOVE),
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/MultiEdgesConnecting.java

        Iterator<? extends Entry<E, ?>> entries = outEdgeToNode.entrySet().iterator();
        return new AbstractIterator<E>() {
          @Override
          @CheckForNull
          protected E computeNext() {
            while (entries.hasNext()) {
              Entry<E, ?> entry = entries.next();
              if (targetNode.equals(entry.getValue())) {
                return entry.getKey();
              }
            }
            return endOfData();
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Oct 06 00:47:57 GMT 2021
    - 2.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/MultiReader.java

          return read(cbuf, off, len);
        }
        return result;
      }
    
      @Override
      public long skip(long n) throws IOException {
        Preconditions.checkArgument(n >= 0, "n is negative");
        if (n > 0) {
          while (current != null) {
            long result = current.skip(n);
            if (result > 0) {
              return result;
            }
            advance();
          }
        }
        return 0;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 2.4K bytes
    - Viewed (2)
  5. guava/src/com/google/common/cache/LocalCache.java

          }
          if (map.usesValueReferences()) {
            clearValueReferenceQueue();
          }
        }
    
        void clearKeyReferenceQueue() {
          while (keyReferenceQueue.poll() != null) {}
        }
    
        void clearValueReferenceQueue() {
          while (valueReferenceQueue.poll() != null) {}
        }
    
        // recency queue, shared by expiration and eviction
    
        /**
    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)
  6. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

        public int add(E element, int occurrences) {
          if (occurrences == 0) {
            return count(element);
          }
          checkArgument(occurrences > 0, "Invalid occurrences: %s", occurrences);
    
          while (true) {
            int current = count(element);
            if (current == 0) {
              if (countMap.putIfAbsent(element, occurrences) == null) {
                return 0;
              }
            } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 06 12:56:11 GMT 2023
    - 16.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSet.java

        // Correct the size for open addressing to match desired load factor.
        if (setSize < CUTOFF) {
          // Round up to the next highest power of 2.
          int tableSize = Integer.highestOneBit(setSize - 1) << 1;
          while (tableSize * DESIRED_LOAD_FACTOR < setSize) {
            tableSize <<= 1;
          }
          return tableSize;
        }
    
        // The table can't be completely full or we'll get infinite reprobes
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        // test that the RangeSet's span is the span of all the ranges
        Iterator<Range<C>> itr = rangeSet.asRanges().iterator();
        Range<C> expectedSpan = null;
        if (itr.hasNext()) {
          expectedSpan = itr.next();
          while (itr.hasNext()) {
            expectedSpan = expectedSpan.span(itr.next());
          }
        }
    
        try {
          Range<C> span = rangeSet.span();
          assertEquals(expectedSpan, span);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/LenientSerializableTester.java

    import java.util.Set;
    
    /**
     * Variant of {@link SerializableTester} that does not require the reserialized object's class to be
     * identical to the original.
     *
     * @author Chris Povirk
     */
    /*
     * The whole thing is really @GwtIncompatible, but GwtJUnitConvertedTestModule doesn't have a
     * parameter for non-GWT, non-test files, and it didn't seem worth adding one for this unusual case.
     */
    @GwtCompatible(emulated = true)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Aug 04 15:33:27 GMT 2020
    - 2.5K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/util/concurrent/MoreExecutorsDirectExecutorBenchmark.java

        for (int i = 0; i < 4; i++) {
          Thread thread =
              new Thread() {
                @Override
                public void run() {
                  CountingRunnable localRunnable = new CountingRunnable();
                  while (!isInterrupted()) {
                    executor.execute(localRunnable);
                  }
                  countingRunnable.integer.addAndGet(localRunnable.integer.get());
                }
              };
          threads.add(thread);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.4K bytes
    - Viewed (0)
Back to top