Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for setElement (0.04 sec)

  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();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MoreCollectors.java

              ToOptionalState::new,
              (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);
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. 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);
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  4. 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);
          }
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 08 13:05:15 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableMultiset.java

          elements = new Object[distinct];
          counts = new int[distinct];
          int i = 0;
          for (Entry<? extends Object> entry : multiset.entrySet()) {
            elements[i] = entry.getElement();
            counts[i] = entry.getCount();
            i++;
          }
        }
    
        Object readResolve() {
          ImmutableMultiset.Builder<Object> builder =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 4K bytes
    - Viewed (0)
  6. android/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);
    
        /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 19.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/EnumMultiset.java

      Iterator<Entry<E>> entryIterator() {
        return new Itr<Entry<E>>() {
          @Override
          Entry<E> output(int index) {
            return new Multisets.AbstractEntry<E>() {
              @Override
              public E getElement() {
                return enumConstants[index];
              }
    
              @Override
              public int getCount() {
                return counts[index];
              }
            };
          }
        };
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Serialization.java

        int entryCount = multiset.entrySet().size();
        stream.writeInt(entryCount);
        for (Multiset.Entry<E> entry : multiset.entrySet()) {
          stream.writeObject(entry.getElement());
          stream.writeInt(entry.getCount());
        }
      }
    
      /**
       * Populates a multiset by reading an input stream, as part of deserialization. See {@link
       * #writeMultiset} for the data format.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/timer/TimeoutManager.java

                return expiredTask;
            }
            for (SLinkedList<TimeoutTask>.Entry e = timeoutTaskList.getFirstEntry(); e != null; e = e.getNext()) {
                final TimeoutTask task = e.getElement();
                if (task.isCanceled()) {
                    e.remove();
                } else if (!task.isStopped() && task.isExpired()) {
                    expiredTask.add(task);
                    if (!task.isPermanent()) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ForwardingMultiset.java

       * implementation.
       *
       * @since 7.0
       */
      protected int standardCount(@Nullable Object object) {
        for (Entry<?> entry : this.entrySet()) {
          if (Objects.equals(entry.getElement(), object)) {
            return entry.getCount();
          }
        }
        return 0;
      }
    
      /**
       * A sensible definition of {@link #add(Object)} in terms of {@link #add(Object, int)}. If you
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 10.3K bytes
    - Viewed (0)
Back to top