- Sort Score
- Result 10 results
- Languages All
Results 1871 - 1880 of 2,802 for inst (0.01 sec)
-
android/guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java
* sample element is not in any collection */ ANY(ZERO, ONE, SEVERAL); private final Set<Feature<? super Collection>> implied; private final @Nullable Integer numElements; CollectionSize(int numElements) { this.implied = emptySet(); this.numElements = numElements; } CollectionSize(Feature<? super Collection>... implied) { // Keep the order here, so that PerCollectionSizeTestSuiteBuilder
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Objects.java
* * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that * has three properties, {@code x}, {@code y}, and {@code z}, one could write: * * {@snippet : * public int hashCode() { * return Objects.hashCode(getX(), getY(), getZ()); * } * } * * <p><b>Warning:</b> When a single object is supplied, the returned hash code does not equal the * hash code of that object.Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Jul 28 22:51:26 UTC 2025 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/features/CollectionSize.java
* sample element is not in any collection */ ANY(ZERO, ONE, SEVERAL); private final Set<Feature<? super Collection>> implied; private final @Nullable Integer numElements; CollectionSize(int numElements) { this.implied = emptySet(); this.numElements = numElements; } CollectionSize(Feature<? super Collection>... implied) { // Keep the order here, so that PerCollectionSizeTestSuiteBuilder
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
src/test/java/jcifs/SmbResourceTest.java
void testGetType() throws CIFSException { // Given int expectedType = 1; // Assuming TYPE_FILESYSTEM when(mockResource.getType()).thenReturn(expectedType); // When int type = mockResource.getType(); // Then assertEquals(expectedType, type, "Should return correct resource type");
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 35K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/CacheLoadingTest.java
CacheBuilder.newBuilder().weakValues().build(countingLoader); ConcurrentMap<Object, Object> map = cache.asMap(); int iterations = 10; WeakReference<Object> ref = new WeakReference<>(null); int expectedComputations = 0; for (int i = 0; i < iterations; i++) { // The entry should get garbage collected and recomputed. Object oldValue = ref.get(); if (oldValue == null) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 91.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/ByteArrayAsListTest.java
@GwtCompatible @NullUnmarked @AndroidIncompatible // test-suite builders public class ByteArrayAsListTest extends TestCase { private static List<Byte> asList(Byte[] values) { byte[] temp = new byte[values.length]; for (int i = 0; i < values.length; i++) { temp[i] = checkNotNull(values[i]); // checkNotNull for GWT (do not optimize). } return Bytes.asList(temp); } @J2ktIncompatible @GwtIncompatible // suiteRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/primitives/LongArrayAsListTest.java
@GwtCompatible @NullUnmarked @AndroidIncompatible // test-suite builders public class LongArrayAsListTest extends TestCase { private static List<Long> asList(Long[] values) { long[] temp = new long[values.length]; for (int i = 0; i < values.length; i++) { temp[i] = checkNotNull(values[i]); // checkNotNull for GWT (do not optimize). } return Longs.asList(temp); } @J2ktIncompatible @GwtIncompatible // suiteRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.5K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/MoreExecutors.java
* is complete. It does so by using daemon threads and adding a shutdown hook to wait for their * completion. * * <p>This is mainly for fixed thread pools. See {@link Executors#newFixedThreadPool(int)}. * * @param executor the executor to modify to make sure it exits when the application is finished * @param terminationTimeout how long to wait for the executor to finish before terminating the * JVMRegistered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Oct 08 18:55:33 UTC 2025 - 45.2K bytes - Viewed (0) -
src/main/java/org/codelibs/core/collection/LruHashSet.java
/** * Creates a new {@link LruHashSet} with the specified limit size. * * @param limitSize * the maximum number of elements to retain in the set */ public LruHashSet(final int limitSize) { map = new LruHashMap<>(limitSize); } /** * Returns an iterator over the elements in this set. The elements are * returned in no particular order. *Registered: Sat Dec 20 08:55:33 UTC 2025 - Last Modified: Sat Jul 05 00:11:05 UTC 2025 - 3.7K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
* <li>{@code done} - Flag indicating whether the file has been retrieved.</li> * </ul> * * <p>Constructors:</p> * <ul> * <li>{@code ContentOutputStream(int threshold, File tmpDir)} - Constructs a ContentOutputStream with a specified threshold and temporary directory.</li> * </ul> * * <p>Methods:</p> * <ul>
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 3.9K bytes - Viewed (0)