- Sort Score
- Result 10 results
- Languages All
Results 2361 - 2370 of 3,487 for init (0.04 sec)
-
android/guava-tests/test/com/google/common/cache/CacheBuilderGwtTest.java
assertEquals(Integer.valueOf(50), cache.getIfPresent(10)); assertEquals(Integer.valueOf(50), asMap.get(10)); } public void testRemovalListener() { int[] stats = new int[4]; RemovalListener<Integer, Integer> countingListener = new RemovalListener<Integer, Integer>() { @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 14.4K bytes - Viewed (0) -
gorm.go
Logger logger.Interface NowFunc func() time.Time CreateBatchSize int } // Open initialize db session based on dialector func Open(dialector Dialector, opts ...Option) (db *DB, err error) { config := &Config{} sort.Slice(opts, func(i, j int) bool { _, isConfig := opts[i].(*Config) _, isConfig2 := opts[j].(*Config) return isConfig && !isConfig2 })
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Tue Aug 26 06:24:29 UTC 2025 - 12.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveTester.java
public class CollectionRemoveTester<E> extends AbstractCollectionTester<E> { @CollectionFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO) public void testRemove_present() { int initialSize = collection.size(); assertTrue("remove(present) should return true", collection.remove(e0())); assertEquals( "remove(present) should decrease a collection's size by one.", initialSize - 1,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Feb 11 21:04:02 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/org/codelibs/core/io/ResourceTraversalTest.java
import junit.framework.TestCase; import org.codelibs.core.jar.JarFileUtil; import org.junit.Before; import org.junit.Test; /** * @author taedium */ public class ResourceTraversalTest { private static int count = 0; /** * @throws Exception */ @Before public void setUp() throws Exception { count = 0; } /** * @throws Exception */ @TestRegistered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Sat May 10 01:32:17 UTC 2025 - 6K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex.go
// Base reports the position base of the token. Base() *src.PosBase // SetBase sets the position base. SetBase(*src.PosBase) // Line reports the source line number of the token. Line() int // Col reports the source column number of the token. Col() int // Close does any teardown required. Close() } // A Token is a scan token plus its string value. // A macro is stored as a sequence of Tokens with spaces stripped.
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 4.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Joiner.java
}; } // cloned from ImmutableCollection private static int expandedCapacity(int oldCapacity, int minCapacity) { if (minCapacity < 0) { throw new IllegalArgumentException("cannot store more than Integer.MAX_VALUE elements"); } else if (minCapacity <= oldCapacity) { return oldCapacity; } // careful of overflow! int newCapacity = oldCapacity + (oldCapacity >> 1) + 1;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 19.3K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Equivalence.java
* equivalence(x, y)} is false, {@code hash(x) == hash(y)} may still be true. * <li>{@code hash(null)} is {@code 0}. * </ul> */ public final int hash(@Nullable T t) { if (t == null) { return 0; } return doHash(t); } /** * Implemented by the user to return a hash code for {@code t}, subject to the requirements
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 10 01:47:55 UTC 2025 - 14.5K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/duplicatehost/AdminDuplicatehostAction.java
* Verifies that the CRUD mode matches the expected mode. * * @param crudMode the actual CRUD mode * @param expectedMode the expected CRUD mode */ protected void verifyCrudMode(final int crudMode, final int expectedMode) { if (crudMode != expectedMode) { throwValidationError(messages -> { messages.addErrorsCrudInvalidMode(GLOBAL, String.valueOf(expectedMode), String.valueOf(crudMode));Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 16.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/EmptyCachesTest.java
.withRefreshes(ImmutableSet.of(DurationSpec.of(1, SECONDS), DurationSpec.of(1, DAYS))); } private static void warmUp(LoadingCache<Object, Object> cache, int minimum, int maximum) { for (int i = minimum; i < maximum; i++) { cache.getUnchecked(i); } } private Entry<Object, Object> entryOf(Object key, Object value) { return Maps.immutableEntry(key, value); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 11.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/util/concurrent/TestThread.java
assertEquals(expected, getResponse(methodName).getResult()); } /** * Causes this thread to call the named method, and asserts that the call returns the expected int * value. */ public void callAndAssertReturns(int expected, String methodName, Object... arguments) throws Exception { checkNotNull(methodName); checkNotNull(arguments); sendRequest(methodName, arguments);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 10.8K bytes - Viewed (0)