Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Wong (0.17 sec)

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

        if (entries.isEmpty()) {
          return emptyMultiset(comparator);
        }
        ImmutableList.Builder<E> elementsBuilder = new ImmutableList.Builder<>(entries.size());
        long[] cumulativeCounts = new long[entries.size() + 1];
        int i = 0;
        for (Entry<E> entry : entries) {
          elementsBuilder.add(entry.getElement());
          cumulativeCounts[i + 1] = cumulativeCounts[i] + entry.getCount();
          i++;
    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)
  2. android/guava/src/com/google/common/collect/Iterators.java

       * Returns the number of elements remaining in {@code iterator}. The iterator will be left
       * exhausted: its {@code hasNext()} method will return {@code false}.
       */
      public static int size(Iterator<?> iterator) {
        long count = 0L;
        while (iterator.hasNext()) {
          iterator.next();
          count++;
        }
        return Ints.saturatedCast(count);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Multisets.java

        }
    
        @Override
        public boolean setCount(@ParametricNullness E element, int oldCount, int newCount) {
          throw new UnsupportedOperationException();
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /**
       * Returns an unmodifiable view of the specified sorted multiset. Query operations on the returned
    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/ImmutableSortedMap.java

          Comparator<? super K> comparator,
          boolean sameComparator,
          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          this.elements = elements;
        }
    
        @SuppressWarnings("unchecked")
        Object readResolve() {
          return new Builder<E>(comparator).add((E[]) elements).build();
        }
    
        private static final long serialVersionUID = 0;
      }
    
      @J2ktIncompatible // serialization
      private void readObject(ObjectInputStream unused) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    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)
  6. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

        SetFieldSettersHolder.EMPTY_SET_FIELD_SETTER.set(this, emptySet(valueComparator));
      }
    
      @GwtIncompatible // not needed in emulated source.
      @J2ktIncompatible
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

        }
    
        private static final long serialVersionUID = 0;
      }
    
      Object writeReplace() {
        return new SerializedForm<>(asMapOfRanges());
      }
    
      @J2ktIncompatible // java.io.ObjectInputStream
      private void readObject(ObjectInputStream stream) throws InvalidObjectException {
        throw new InvalidObjectException("Use SerializedForm");
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        @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();
              if (total >= Integer.MAX_VALUE) {
                break;
              }
            }
    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)
  9. android/guava/src/com/google/common/collect/ImmutableTable.java

          }
          return RegularImmutableTable.forOrderedComponents(
              cellListBuilder.build(), ImmutableSet.copyOf(rowKeys), ImmutableSet.copyOf(columnKeys));
        }
    
        private static final long serialVersionUID = 0;
      }
    
      @J2ktIncompatible // serialization
      @GwtIncompatible // serialization
      abstract Object writeReplace();
    
      @GwtIncompatible // serialization
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

         */
        Builder<K, V> makeBuilder(int size) {
          return new Builder<>(size);
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /**
       * Returns a serializable form of this object. Non-public subclasses should not override this
    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)
Back to top