Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 432 for add2 (0.2 sec)

  1. guava/src/com/google/common/base/MoreObjects.java

        }
    
        /**
         * Adds a name/value pair to the formatted output in {@code name=value} format.
         *
         * @since 18.0 (since 11.0 as {@code Objects.ToStringHelper.add()}).
         */
        @CanIgnoreReturnValue
        public ToStringHelper add(String name, char value) {
          return addUnconditionalHolder(name, String.valueOf(value));
        }
    
        /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/StatsAccumulator.java

        while (values.hasNext()) {
          add(values.next().doubleValue());
        }
      }
    
      /**
       * Adds the given values to the dataset.
       *
       * @param values a series of values
       */
      public void addAll(double... values) {
        for (double value : values) {
          add(value);
        }
      }
    
      /**
       * Adds the given values to the dataset.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RangeSet.java

       * #add(Range) add} any range not {@linkplain Range#encloses(Range) enclosed} by {@code view}.
       */
      RangeSet<C> subRangeSet(Range<C> view);
    
      // Modification
    
      /**
       * Adds the specified range to this {@code RangeSet} (optional operation). That is, for equal
       * range sets a and b, the result of {@code a.add(range)} is that {@code a} will be the minimal
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/EvictingQueue.java

        return delegate;
      }
    
      /**
       * Adds the given element to this queue. If the queue is currently full, the element at the head
       * of the queue is evicted to make room.
       *
       * @return {@code true} always
       */
      @Override
      @CanIgnoreReturnValue
      public boolean offer(E e) {
        return add(e);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableSet.java

        SetBuilderImpl<E> builder = new RegularSetBuilderImpl<>(6 + others.length);
        builder = builder.add(e1).add(e2).add(e3).add(e4).add(e5).add(e6);
        for (int i = 0; i < others.length; i++) {
          builder = builder.add(others[i]);
        }
        return builder.review().build();
      }
    
      /**
    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)
  6. android/guava/src/com/google/common/hash/LongAdder.java

              || !(uncontended = a.cas(v = a.value, v + x))) retryUpdate(x, hc, uncontended);
        }
      }
    
      /** Equivalent to {@code add(1)}. */
      @Override
      public void increment() {
        add(1L);
      }
    
      /** Equivalent to {@code add(-1)}. */
      public void decrement() {
        add(-1L);
      }
    
      /**
       * Returns the current sum. The returned value is NOT an atomic snapshot; invocation in
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 20 18:43:59 GMT 2021
    - 5.4K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/collect/ConcurrentHashMultisetBenchmark.java

            for (int i = entry.getCount(); i > 0; i--) {
              list.add(element);
            }
          }
          return list;
        }
    
        // Modification Operations
    
        /**
         * Adds a number of occurrences of the specified element to this multiset.
         *
         * @param element the element to add
         * @param occurrences the number of occurrences to add
    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)
  8. android/guava/src/com/google/common/util/concurrent/ExecutionList.java

       * documentation.
       */
      public void add(Runnable runnable, Executor executor) {
        // Fail fast on a null. We throw NPE here because the contract of Executor states that it throws
        // NPE on null listener, so we propagate that contract up into the add method as well.
        checkNotNull(runnable, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/EquivalenceTester.java

      }
    
      public static <T> EquivalenceTester<T> of(Equivalence<? super T> equivalence) {
        return new EquivalenceTester<>(equivalence);
      }
    
      /**
       * Adds a group of objects that are supposed to be equivalent to each other and not equivalent to
       * objects in any other equivalence group added to this tester.
       */
      @CanIgnoreReturnValue
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

        for (int i = 0; i < equalityGroup.length; i++) {
          Object element = equalityGroup[i];
          if (element == null) {
            throw new NullPointerException("at index " + i);
          }
          list.add(element);
        }
        equalityGroups.add(list);
        return this;
      }
    
      /** Run tests on equals method, throwing a failure on an invalid test */
      @CanIgnoreReturnValue
      public EqualsTester testEquals() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
Back to top