- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 75 for getElement (0.19 sec)
-
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<>(
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) -
guava-tests/test/com/google/common/collect/MultisetsTest.java
.equals(ImmutableList.copyOf(ms2.entrySet())); CollectorTester.of( Multisets.<Multiset.Entry<String>, String, Multiset<String>>toMultiset( Multiset.Entry::getElement, Multiset.Entry::getCount, LinkedHashMultiset::create), equivalence) .expectCollects(ImmutableMultiset.<String>of()) .expectCollects(
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Feb 19 20:34:55 GMT 2024 - 12.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/EnumMultiset.java
return new Itr<Entry<E>>() { @Override Entry<E> output(final int index) { return new Multisets.AbstractEntry<E>() { @Override public E getElement() { return enumConstants[index]; } @Override public int getCount() { return counts[index]; } }; } }; }
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 9K bytes - Viewed (0) -
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() {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 11K bytes - Viewed (1) -
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
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Fri May 12 15:26:39 GMT 2023 - 10.4K bytes - Viewed (0) -
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. *
Java - Registered: Fri Apr 26 12:43:10 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 15K bytes - Viewed (0) -
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. *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Feb 26 19:46:10 GMT 2024 - 14.8K bytes - Viewed (0) -
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
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Fri May 12 15:26:39 GMT 2023 - 10.4K bytes - Viewed (0) -
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<>(
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Mon Apr 01 16:15:01 GMT 2024 - 29.6K bytes - Viewed (0) -
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])) {
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Jun 01 22:07:10 GMT 2021 - 15K bytes - Viewed (0)