- Sort Score
- Num 10 results
- Language All
Results 71 - 80 of 1,294 for element (0.04 seconds)
-
guava/src/com/google/common/collect/RegularImmutableMultiset.java
boolean isPartialView() { return false; } @Override public int count(@Nullable Object element) { @Nullable ImmutableEntry<?>[] hashTable = this.hashTable; if (element == null || hashTable.length == 0) { return 0; } int hash = smearedHash(element); int mask = hashTable.length - 1; for (ImmutableEntry<?> entry = hashTable[hash & mask]; entry != null;
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) -
android/guava/src/com/google/common/collect/ObjectArrays.java
/** * Returns a new array that prepends {@code element} to {@code array}. * * @param element the element to prepend to the front of {@code array} * @param array the array of elements to append * @return an array whose size is one larger than {@code array}, with {@code element} occupying * the first position, and the elements of {@code array} occupying the remaining elements. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Jan 23 17:16:53 GMT 2026 - 9.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
for (int i = 0; i < 100; i++) { Element element = Element.values()[random.nextInt(range)]; elements.add(element); queue.add(element); } Iterator<Element> queueIterator = queue.iterator(); int remaining = queue.size(); while (queueIterator.hasNext()) { Element element = queueIterator.next(); remaining--;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 36.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java
} @Override public int count(@Nullable Object element) { for (Entry<E> entry : entrySet()) { if (Objects.equals(entry.getElement(), element)) { return entry.getCount(); } } return 0; } @Override public int add(E element, int occurrences) { checkArgument(occurrences >= 0);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java
Iterator<E> iterator = collection.iterator(); Object element = iterator.next(); // If it's an Entry, it may become invalid once it's removed from the Map. Copy it. if (element instanceof Entry) { Entry<?, ?> entry = (Entry<?, ?>) element; element = mapEntry(entry.getKey(), entry.getValue()); } assertTrue(collection.contains(element)); // sanity check iterator.remove();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 6.1K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/JavadocLinkConverter.java
Element element = document.createElement("NO-VALUE-FOR_FIELD"); element.appendChild(document.createTextNode(targetClass.getClassName() + ":" + parts[1])); return element; } return createLiteralNode(value); } private Node createLiteralNode(String value) { Element element = document.createElement("literal");
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 7K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/QueueElementTester.java
public void testElement_empty() { assertThrows(NoSuchElementException.class, () -> getQueue().element()); expectUnchanged(); } @CollectionSize.Require(ONE) public void testElement_size1() { assertEquals("size1Queue.element() should return first element", e0(), getQueue().element()); expectUnchanged(); } @CollectionFeature.Require(KNOWN_ORDER) @CollectionSize.Require(SEVERAL)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 2.4K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/ExtensionMethodsSummaryRenderer.java
} Document document = parent.getOwnerDocument(); Element section = document.createElement("section"); parent.appendChild(section); Element title = document.createElement("title"); section.appendChild(title); title.appendChild(document.createTextNode("Methods added by the ")); Element literal = document.createElement("literal"); title.appendChild(literal);Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 2.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* Returns a fluent iterable containing the specified elements in order. * * <p><b>{@code Stream} equivalent:</b> {@link java.util.stream.Stream#of(Object[]) * Stream.of(T...)}. * * @since 20.0 */ public static <E extends @Nullable Object> FluentIterable<E> of( @ParametricNullness E element, E... elements) { return from(Lists.asList(element, elements)); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 34.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/FluentIterable.java
* Returns a fluent iterable containing the specified elements in order. * * <p><b>{@code Stream} equivalent:</b> {@link java.util.stream.Stream#of(Object[]) * Stream.of(T...)}. * * @since 20.0 */ public static <E extends @Nullable Object> FluentIterable<E> of( @ParametricNullness E element, E... elements) { return from(Lists.asList(element, elements)); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Apr 02 14:49:41 GMT 2026 - 34.7K bytes - Click Count (0)