- Sort Score
- Num 10 results
- Language All
Results 91 - 100 of 1,497 for Unit (0.03 seconds)
-
android/guava/src/com/google/common/util/concurrent/ForwardingFuture.java
return delegate().get(); } @Override @CanIgnoreReturnValue @ParametricNullness public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { return delegate().get(timeout, unit); } // TODO(cpovirk): Use standard Javadoc form for SimpleForwarding* class and constructor /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 14:39:00 GMT 2026 - 3.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryFSInformationTest.java
import org.junit.jupiter.api.DisplayName; import org.junit.jupiter.api.Test; import jcifs.smb1.util.Hexdump; /** * Unit test for {@link Trans2QueryFSInformation}. The class contains mostly * trivial wire-format helpers and a custom {@code toString()} implementation. * All tests are pure unit tests – no network or file system access is * required. */ class Trans2QueryFSInformationTest {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.5K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/transfer/FileSizeFormatTest.java
@MethodSource("sizeWithScaleUnitTestData") void testSizeWithSelectedScaleUnit(long input, ScaleUnit unit, String expected) { FileSizeFormat format = new FileSizeFormat(); if (unit == null) { assertEquals(expected, format.format(input)); } else { assertEquals(expected, format.format(input, unit)); } } @Test void testNegativeProgressedSize() {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 14.9K bytes - Click Count (0) -
guava-tests/pom.xml
<groupId>com.google.guava</groupId> <artifactId>guava-parent</artifactId> <version>999.0.0-HEAD-jre-SNAPSHOT</version> </parent> <artifactId>guava-tests</artifactId> <name>Guava Unit Tests</name> <description> The unit tests for the Guava libraries - separated into a separate artifact to allow for the testlibs to depend on guava itself. </description> <dependencies> <dependency>
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 05 03:10:05 GMT 2025 - 4.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/AbstractChainedListenableFutureTest.java
import java.util.concurrent.TimeoutException; import junit.framework.TestCase; import org.jspecify.annotations.NullUnmarked; /** * Unit tests for any listenable future that chains other listenable futures. Unit tests need only * override buildChainingFuture and getSuccessfulResult, but they can add custom tests as needed. * * @author Nishant Thakkar */ @NullUnmarked @GwtIncompatible
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Mar 07 02:20:33 GMT 2026 - 3.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/Queues.java
* @param buffer where to add the transferred elements * @param numElements the number of elements to be waited for * @param timeout how long to wait before giving up, in units of {@code unit} * @param unit a {@code TimeUnit} determining how to interpret the timeout parameter * @return the number of elements transferred * @throws InterruptedException if interrupted while waiting */ @CanIgnoreReturnValueCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 19:19:10 GMT 2026 - 18.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java
rethrow(e); } throw new AssertionError("Unreachable"); } @Override public V get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException { try { super.get(timeout, unit); } catch (ExecutionException e) { rethrow(e); } throw new AssertionError("Unreachable"); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.3K bytes - Click Count (0) -
android/guava/src/com/google/common/util/concurrent/ListenableFutureTask.java
@CanIgnoreReturnValue @Override @ParametricNullness public V get(long timeout, TimeUnit unit) throws TimeoutException, InterruptedException, ExecutionException { long timeoutNanos = unit.toNanos(timeout); if (timeoutNanos <= OverflowAvoidingLockSupport.MAX_NANOSECONDS_THRESHOLD) { return super.get(timeout, unit); } // Waiting 68 years should be enough for any program. return super.get(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 10 11:51:21 GMT 2026 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/cache/CacheBuilder.java
@CanIgnoreReturnValue public CacheBuilder<K, V> refreshAfterWrite(long duration, TimeUnit unit) { checkNotNull(unit); checkState(refreshNanos == UNSET_INT, "refresh was already set to %s ns", refreshNanos); checkArgument(duration > 0, "duration must be positive: %s %s", duration, unit); this.refreshNanos = unit.toNanos(duration); return this; }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 52K bytes - Click Count (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt
name = "NULL", tagClass = DerHeader.TAG_CLASS_UNIVERSAL, tag = 5L, codec = object : BasicDerAdapter.Codec<Unit?> { override fun decode(reader: DerReader): Unit? = null override fun encode( writer: DerWriter, value: Unit?, ) { } }, ) val OBJECT_IDENTIFIER = BasicDerAdapter(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 15K bytes - Click Count (0)