- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 18 for addFirst (0.06 sec)
-
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
assertThat(list.getLast(), is("1")); } /** * @throws Exception */ @Test public void testAddFirst() throws Exception { list.addFirst("1"); list.addFirst("2"); assertThat(list.getFirst(), is("2")); } /** * @throws Exception */ @Test public void testAddLast() throws Exception {
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.3K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingDeque.java
/** Constructor for use by subclasses. */ protected ForwardingDeque() {} @Override protected abstract Deque<E> delegate(); @Override public void addFirst(@ParametricNullness E e) { delegate().addFirst(e); } @Override public void addLast(@ParametricNullness E e) { delegate().addLast(e); } @Override public Iterator<E> descendingIterator() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 13 14:30:51 UTC 2023 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SynchronizedDequeTest.java
public <T> T[] toArray(T[] array) { assertTrue(Thread.holdsLock(mutex)); return delegate.toArray(array); } @Override public void addFirst(E e) { assertTrue(Thread.holdsLock(mutex)); delegate.addFirst(e); } @Override public void addLast(E e) { assertTrue(Thread.holdsLock(mutex)); delegate.addLast(e); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Aug 06 17:23:04 UTC 2024 - 7.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/DisposableUtil.java
* </p> * * @param disposable * 破棄可能なリソース。{@literal null}であってはいけません */ public static synchronized void addFirst(final Disposable disposable) { assertArgumentNotNull("disposable", disposable); disposables.addFirst(disposable); } /** * 破棄可能なリソースを登録解除します。 * * @param disposable * 破棄可能なリソース。{@literal null}であってはいけません */
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/misc/DisposableUtilTest.java
} /** * @throws Exception */ @Test public void test4() throws Exception { DisposableUtil.add(new TestDisposable("a")); DisposableUtil.addFirst(new TestDisposable("b")); assertThat(DisposableUtil.disposables.size(), is(2)); DisposableUtil.dispose(); assertThat(count, is(2)); assertThat(names, is("ab"));
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 3.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/connection/SequentialExchangeFinder.kt
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/testing/TearDownStack.java
} public TearDownStack(boolean suppressThrows) { this.suppressThrows = suppressThrows; } @Override public final void addTearDown(TearDown tearDown) { synchronized (lock) { stack.addFirst(checkNotNull(tearDown)); } } /** Causes teardown to execute. */ public final void runTearDown() { List<Throwable> exceptions = new ArrayList<>(); List<TearDown> stackCopy;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 2.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/TearDownStack.java
} public TearDownStack(boolean suppressThrows) { this.suppressThrows = suppressThrows; } @Override public final void addTearDown(TearDown tearDown) { synchronized (lock) { stack.addFirst(checkNotNull(tearDown)); } } /** Causes teardown to execute. */ public final void runTearDown() { List<Throwable> exceptions = new ArrayList<>(); List<TearDown> stackCopy;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Jun 21 10:19:29 UTC 2024 - 2.5K bytes - Viewed (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/BuildableDOMCategory.groovy
return builder.elements[0] } public static void leftShift(Node parent, Node node) { parent.appendChild(parent.ownerDocument.importNode(node, true)) } public static void addFirst(Node parent, Closure cl) { DomBuilder builder = new DomBuilder(parent.ownerDocument, null) cl.delegate = builder cl.call() def firstChild = parent.getFirstChild()
Registered: Wed Nov 06 11:36:14 UTC 2024 - Last Modified: Thu Aug 11 15:32:19 UTC 2022 - 2.8K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
currentTask = self taskRunner.condition.signalAll() } } if (strategy == ResumePriority.BeforeOtherTasks) { serialTaskQueue.addFirst(yieldCompleteTask) } else { serialTaskQueue.addLast(yieldCompleteTask) } val startedTask = startNextTask() val otherTasksStarted = startedTask != yieldCompleteTask try {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 29 00:33:04 UTC 2024 - 12.6K bytes - Viewed (0)