Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 129 for light (0.01 sec)

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

       */
    
      @Override
      public void write(char[] cbuf, int off, int len) throws IOException {
        checkNotClosed();
        // It turns out that creating a new String is usually as fast, or faster
        // than wrapping cbuf in a light-weight CharSequence.
        target.append(new String(cbuf, off, len));
      }
    
      /*
       * Override a few functions for performance reasons to avoid creating unnecessary strings.
       */
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:37:28 UTC 2025
    - 3.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/NullnessCasts.java

       * code would be responsible for populating a "real" {@code T} (which might still be the value
       * {@code null}!) before returning it to callers. Depending on how the code is structured, a
       * nullness analysis might not understand that the field has been populated. To avoid that problem
       * without having to add {@code @SuppressWarnings}, the code can call this method.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 20:49:47 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/TopKSelector.java

        int left = 0;
        int right = 2 * k - 1;
    
        int minThresholdPosition = 0;
        // The leftmost position at which the greatest of the k lower elements
        // -- the new value of threshold -- might be found.
    
        int iterations = 0;
        int maxIterations = IntMath.log2(right - left, RoundingMode.CEILING) * 3;
        while (left < right) {
          int pivotIndex = (left + right + 1) >>> 1;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 31 13:15:26 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/NullnessCasts.java

       * code would be responsible for populating a "real" {@code T} (which might still be the value
       * {@code null}!) before returning it to callers. Depending on how the code is structured, a
       * nullness analysis might not understand that the field has been populated. To avoid that problem
       * without having to add {@code @SuppressWarnings}, the code can call this method.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 13 20:49:47 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableMapTest.java

                "five", 5,
                "six", 6,
                "seven", 7,
                "eight", 8),
            "one",
            1,
            "two",
            2,
            "three",
            3,
            "four",
            4,
            "five",
            5,
            "six",
            6,
            "seven",
            7,
            "eight",
            8);
        assertMapEquals(
            ImmutableMap.of(
                "one", 1,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 36.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeMultiset.java

          successor(pred(), succ());
          if (left == null) {
            return right;
          } else if (right == null) {
            return left;
          } else if (left.height >= right.height) {
            AvlNode<E> newTop = pred();
            // newTop is the maximum node in my left subtree
            newTop.left = left.removeMax(newTop);
            newTop.right = right;
            newTop.distinctElements = distinctElements - 1;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Queues.java

         */
        long deadline = System.nanoTime() + unit.toNanos(timeout);
        int added = 0;
        while (added < numElements) {
          // we could rely solely on #poll, but #drainTo might be more efficient when there are multiple
          // elements already available (e.g. LinkedBlockingQueue#drainTo locks only once)
          added += q.drainTo(buffer, numElements - added);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Float[] concat(Float[] left, Float[] right) {
        Float[] result = new Float[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestFloatListGenerator implements TestListGenerator<Float> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/FloatArrayAsListTest.java

          return asList(all).subList(2, elements.length + 2);
        }
      }
    
      private static Float[] concat(Float[] left, Float[] right) {
        Float[] result = new Float[left.length + right.length];
        System.arraycopy(left, 0, result, 0, left.length);
        System.arraycopy(right, 0, result, left.length, right.length);
        return result;
      }
    
      public abstract static class TestFloatListGenerator implements TestListGenerator<Float> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
Back to top