- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 166 for closest (0.58 sec)
-
guava/src/com/google/common/collect/MinMaxPriorityQueue.java
/** * Fills the hole at {@code index} by moving in the least of its grandchildren to this position, * then recursively filling the new hole created. * * @return the position of the new hole (where the lowest grandchild moved from, that had no * grandchild to replace it) */ int fillHoleAt(int index) { int minGrandchildIndex; while ((minGrandchildIndex = findMinGrandChild(index)) > 0) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 34K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/TestStreamSupplier.java
* stream was closed. Intended for use in a test where only a single stream should be opened and * possibly closed. * * @author Colin Decker */ public interface TestStreamSupplier { /** Returns whether or not a new stream was opened. */ boolean wasStreamOpened(); /** Returns whether or not an open stream was closed. */ boolean wasStreamClosed();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/TestStreamSupplier.java
* stream was closed. Intended for use in a test where only a single stream should be opened and * possibly closed. * * @author Colin Decker */ public interface TestStreamSupplier { /** Returns whether or not a new stream was opened. */ boolean wasStreamOpened(); /** Returns whether or not an open stream was closed. */ boolean wasStreamClosed();
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java
assertTrue(future.isCancelled()); if (future.wasInterrupted()) { // We were cancelled, it is possible that setFuture could have succeeded too. assertThat(numSuccessfulSetCalls.get()).isIn(Range.closed(1, 2)); } else { assertThat(numSuccessfulSetCalls.get()).isEqualTo(1); } } else { assertThat(numSuccessfulSetCalls.get()).isEqualTo(1); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Jun 11 16:13:05 UTC 2024 - 46.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/ClosingFutureFinishToFutureTest.java
ClosingFuture<Closeable> closingFuture = ClosingFuture.submit( new ClosingCallable<Closeable>() { @Override public Closeable call(DeferredCloser closer) throws Exception { return closer.eventuallyClose(mockCloseable, executor); } }, executor); FluentFuture<Closeable> unused = closingFuture.finishToFuture(); assertThrows(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/SortedMultisets.java
return multiset().subMultiset(fromElement, CLOSED, toElement, OPEN).elementSet(); } @Override public SortedSet<E> headSet(@ParametricNullness E toElement) { return multiset().headMultiset(toElement, OPEN).elementSet(); } @Override public SortedSet<E> tailSet(@ParametricNullness E fromElement) { return multiset().tailMultiset(fromElement, CLOSED).elementSet(); } @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Oct 01 17:18:04 UTC 2021 - 5.6K bytes - Viewed (0) -
guava/src/com/google/common/io/AppendableWriter.java
checkNotClosed(); if (target instanceof Flushable) { ((Flushable) target).flush(); } } @Override public void close() throws IOException { this.closed = true; if (target instanceof Closeable) { ((Closeable) target).close(); } } @Override public Writer append(char c) throws IOException { checkNotClosed(); target.append(c); return this;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue Feb 28 20:13:02 UTC 2023 - 3.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/Iterables.java
/** * Returns the index in {@code iterable} of the first element that satisfies the provided {@code * predicate}, or {@code -1} if the Iterable has no such elements. * * <p>More formally, returns the lowest index {@code i} such that {@code * predicate.apply(Iterables.get(iterable, i))} returns {@code true}, or {@code -1} if there is no * such index. * * @since 2.0 */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Apr 24 19:38:27 UTC 2024 - 42.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CloseablesTest.java
Closeables.closeQuietly(in); assertTrue(in.closed()); } public void testCloseQuietly_readerWithEatenException() throws IOException { TestReader in = new TestReader(TestOption.CLOSE_THROWS); Closeables.closeQuietly(in); assertTrue(in.closed()); } public void testCloseNull() throws IOException { Closeables.close(null, true); Closeables.close(null, false); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 4K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableSortedMultiset.java
return getSubMultiset(0, elementSet.headIndex(upperBound, checkNotNull(boundType) == CLOSED)); } @Override public ImmutableSortedMultiset<E> tailMultiset(E lowerBound, BoundType boundType) { return getSubMultiset( elementSet.tailIndex(lowerBound, checkNotNull(boundType) == CLOSED), length); } ImmutableSortedMultiset<E> getSubMultiset(int from, int to) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 4.6K bytes - Viewed (0)