Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Schick (0.26 sec)

  1. android/guava/src/com/google/common/collect/Iterables.java

        // * Everything with (to <= index < from) should be removed.
        // * The element with (index == from) should be kept.
        // * Everything with (index > from) has not been checked yet.
    
        // Check from the end of the list backwards (minimize expected cost of
        // moving elements when remove() is called). Stop before 'from' because
        // we already know that should be kept.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

      @CheckForNull
      transient ImmutableSortedSet<E> descendingSet;
    
      /** @since 12.0 */
      @GwtIncompatible // NavigableSet
      @Override
      public ImmutableSortedSet<E> descendingSet() {
        // racy single-check idiom
        ImmutableSortedSet<E> result = descendingSet;
        if (result == null) {
          result = descendingSet = createDescendingSet();
          result.descendingSet = this;
        }
        return result;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multisets.java

        if (object == multiset) {
          return true;
        }
        if (object instanceof Multiset) {
          Multiset<?> that = (Multiset<?>) object;
          /*
           * We can't simply check whether the entry sets are equal, since that
           * approach fails when a TreeMultiset has a comparator that returns 0
           * when passed unequal elements.
           */
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

          super(Ordering.natural());
          this.domain = domain;
        }
    
        @LazyInit @CheckForNull private transient Integer size;
    
        @Override
        public int size() {
          // racy single-check idiom
          Integer result = size;
          if (result == null) {
            long total = 0;
            for (Range<C> range : ranges) {
              total += ContiguousSet.create(range, domain).size();
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Ordering.java

     * <i>deprecate</i> this class.
     *
     * <p>Many replacements involve adopting {@code Stream}, and these changes can sometimes make your
     * code verbose. Whenever following this advice, you should check whether {@code Stream} could be
     * adopted more comprehensively in your code; the end result may be quite a bit simpler.
     *
     * <h3>See also</h3>
     *
     * <p>See the Guava User Guide article on <a href=
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 39.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableList.java

      }
    
      /**
       * Views the array as an immutable list. Does not check for nulls; does not copy.
       *
       * <p>The array must be internally created.
       */
      static <E> ImmutableList<E> asImmutableList(Object[] elements) {
        return asImmutableList(elements, elements.length);
      }
    
      /** Views the array as an immutable list. Does not check for nulls. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSet.java

              add(e);
            }
          } else {
            super.add(elements);
          }
          return this;
        }
    
        private void addDeduping(E element) {
          requireNonNull(hashTable); // safe because we check for null before calling this method
          int mask = hashTable.length - 1;
          int hash = element.hashCode();
          for (int i = Hashing.smear(hash); ; i++) {
            i &= mask;
            Object previous = hashTable[i];
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableMultiset.java

         * If the specified collection is backed by an ObjectCountHashMap, it will be much more
         * efficient to iterate over it by index rather than an entry iterator, which will need to
         * allocate an object for each entry, so we check for that.
         */
        @CheckForNull
        static <T> ObjectCountHashMap<T> tryGetMap(Iterable<T> multiset) {
          if (multiset instanceof RegularImmutableMultiset) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          this.elements = (E[]) new Object[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
          this.counts = new int[ImmutableCollection.Builder.DEFAULT_INITIAL_CAPACITY];
        }
    
        /** Check if we need to do deduplication and coalescing, and if so, do it. */
        private void maintenance() {
          if (length == elements.length) {
            dedupAndCoalesce(true);
          } else if (forceCopyElements) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
Back to top