Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 73 for getElements (0.08 seconds)

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

        if (entry == null) {
          throw new NoSuchElementException();
        }
        return entry.getElement();
      }
    
      private static <E extends @Nullable Object> @Nullable E getElementOrNull(
          @Nullable Entry<E> entry) {
        return (entry == null) ? null : entry.getElement();
      }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/ImmutableMultiset.java

          }
    
          @Override
          public E next() {
            if (remaining <= 0) {
              Entry<E> entry = entryIterator.next();
              element = entry.getElement();
              remaining = entry.getCount();
            }
            remaining--;
            /*
             * requireNonNull is safe because `remaining` starts at 0, forcing us to initialize
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/ImmutableMultiset.java

          Collection<? extends Entry<? extends E>> entries) {
        ImmutableMultiset.Builder<E> builder = new ImmutableMultiset.Builder<E>(entries.size());
        for (Entry<? extends E> entry : entries) {
          builder.addCopies(entry.getElement(), entry.getCount());
        }
        return builder.build();
      }
    
      ImmutableMultiset() {}
    
      @Override
      public UnmodifiableIterator<E> iterator() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 22.3K bytes
    - Click Count (0)
  4. guava/src/com/google/common/collect/MoreCollectors.java

              () -> new ToOptionalState<>(null),
              (state, o) -> state.add((o == null) ? NULL_PLACEHOLDER : o),
              ToOptionalState::combine,
              state -> {
                Object result = state.getElement();
                return (result == NULL_PLACEHOLDER) ? null : result;
              },
              Collector.Characteristics.UNORDERED);
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 18 16:22:33 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/RegularImmutableMultiset.java

        for (Entry<? extends E> entryWithWildcard : entries) {
          @SuppressWarnings("unchecked") // safe because we only read from it
          Entry<E> entry = (Entry<E>) entryWithWildcard;
          E element = checkNotNull(entry.getElement());
          int count = entry.getCount();
          int hash = element.hashCode();
          int bucket = Hashing.smear(hash) & mask;
          ImmutableEntry<E> bucketHead = hashTable[bucket];
          ImmutableEntry<E> newEntry;
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 26 20:08:09 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/MoreCollectors.java

              () -> new ToOptionalState<>(null),
              (state, o) -> state.add((o == null) ? NULL_PLACEHOLDER : o),
              ToOptionalState::combine,
              state -> {
                Object result = state.getElement();
                return (result == NULL_PLACEHOLDER) ? null : result;
              },
              Collector.Characteristics.UNORDERED);
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 18 16:22:33 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/core/collection/Indexed.java

            this.element = element;
            this.index = index;
        }
    
        /**
         * Returns the element.
         *
         * @return the element
         */
        public T getElement() {
            return element;
        }
    
        /**
         * Returns the index.
         *
         * @return the index
         */
        public int getIndex() {
            return index;
        }
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jun 19 09:12:22 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Multiset.java

         * represent the same element and count. That is, two entries {@code a} and {@code b} are equal
         * if:
         *
         * {@snippet :
         * Objects.equals(a.getElement(), b.getElement()) && a.getCount() == b.getCount()
         * }
         */
        @Override
        // TODO(kevinb): check this wrt TreeMultiset?
        boolean equals(@Nullable Object o);
    
        /**
         * {@inheritDoc}
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 19:19:10 GMT 2026
    - 20.9K bytes
    - Click Count (0)
  9. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

              @Override
              @ParametricNullness
              public E getElement() {
                return mapEntry.getKey();
              }
    
              @Override
              public int getCount() {
                Count count = mapEntry.getValue();
                if (count == null || count.get() == 0) {
                  Count frequency = backingMap.get(getElement());
                  if (frequency != null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 10.2K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

        long size = 0;
        for (int i = 0; i < entriesArray.length; i++) {
          Entry<E> entry = entriesArray[i];
          int count = entry.getCount();
          size += count;
          E element = checkNotNull(entry.getElement());
          delegateMap.put(element, count);
          if (!(entry instanceof Multisets.ImmutableEntry)) {
            entriesArray[i] = Multisets.immutableEntry(element, count);
          }
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 3.2K bytes
    - Click Count (0)
Back to Top