Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 64 for getElement (0.07 sec)

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

       * implementation.
       *
       * @since 7.0
       */
      protected int standardCount(@CheckForNull Object object) {
        for (Entry<?> entry : this.entrySet()) {
          if (Objects.equal(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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  2. 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 Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        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++;
        }
        return new RegularImmutableSortedMultiset<>(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/beans/factory/ParameterizedClassDescFactory.java

            for (final Indexed<Type> parameterType : indexed(iterable(parameterTypes))) {
                parameterDescs[parameterType.getIndex()] = createParameterizedClassDesc(parameterType.getElement(), map);
            }
            desc.setArguments(parameterDescs);
            return desc;
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ObjectCountHashMap.java

        MapEntry(int index) {
          this.key = (K) keys[index];
          this.lastKnownIndex = index;
        }
    
        @Override
        @ParametricNullness
        public K getElement() {
          return key;
        }
    
        void updateLastKnownIndex() {
          if (lastKnownIndex == -1
              || lastKnownIndex >= size()
              || !Objects.equal(key, keys[lastKnownIndex])) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 01 22:07:10 UTC 2021
    - 15K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ForwardingMultiset.java

       * implementation.
       *
       * @since 7.0
       */
      protected int standardCount(@CheckForNull Object object) {
        for (Entry<?> entry : this.entrySet()) {
          if (Objects.equal(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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

            multiset.entrySet(),
            new Multiset.Entry<E>() {
              @Override
              public int getCount() {
                return 1;
              }
    
              @Override
              public E getElement() {
                return sampleElement;
              }
            });
        assertCollectionsAreEquivalent(multiset, copy);
      }
    
      /**
       * Verifies that a multimap is immutable.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/collection/SLinkedList.java

                this.next = next;
                this.previous = previous;
            }
    
            /**
             * 要素を返します。
             *
             * @return 要素
             */
            public E getElement() {
                return element;
            }
    
            /**
             * 次のエントリを返します。
             *
             * @return 次のエントリ
             */
            public Entry getNext() {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

            multiset.entrySet(),
            new Multiset.Entry<E>() {
              @Override
              public int getCount() {
                return 1;
              }
    
              @Override
              public E getElement() {
                return sampleElement;
              }
            });
        assertCollectionsAreEquivalent(multiset, copy);
      }
    
      /**
       * Verifies that a multimap is immutable.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        CollectorTester.of(
                ImmutableMultiset.<Multiset.Entry<String>, String>toImmutableMultiset(
                    Multiset.Entry::getElement, Multiset.Entry::getCount),
                equivalence)
            .expectCollects(ImmutableMultiset.of())
            .expectCollects(
                ImmutableMultiset.of("a", "a", "b", "c", "c", "c"),
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 24.9K bytes
    - Viewed (0)
Back to top