- Sort Score
- Num 10 results
- Language All
Results 351 - 360 of 1,610 for instanceof (0.05 seconds)
-
guava-tests/test/com/google/common/collect/ContiguousSetTest.java
ContiguousSet<Integer> empty = ContiguousSet.create(Range.closedOpen(1, 1), integers()); assertTrue(empty instanceof EmptyContiguousSet); reserializeAndAssert(empty); ContiguousSet<Integer> regular = ContiguousSet.create(Range.closed(1, 3), integers()); assertTrue(regular instanceof RegularContiguousSet); reserializeAndAssert(regular); /*
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 08 18:10:02 GMT 2026 - 19.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
* we always return a new instance with a null valueComparator, as we already do if the input is * empty or a partial view? * * Related: Should methods that do accept a comparator (like fromMapEntries, or like this one if * we were to choose to *preserve* an input comparator) return not the generic empty of() * instance but instead an empty ImmutableSetMultimap instance with the requestedCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 19 22:57:35 GMT 2026 - 26.3K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Doubles.java
// Overridden to prevent a ton of boxing return (target instanceof Double) && Doubles.indexOf(array, (Double) target, start, end) != -1; } @Override public int indexOf(@Nullable Object target) { // Overridden to prevent a ton of boxing if (target instanceof Double) { int i = Doubles.indexOf(array, (Double) target, start, end); if (i >= 0) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 23 16:38:16 GMT 2026 - 27.8K bytes - Click Count (0) -
guava/src/com/google/common/collect/NullsFirstOrdering.java
return ordering.<@NonNull S>nullsLast(); } @Override public boolean equals(@Nullable Object object) { if (object == this) { return true; } if (object instanceof NullsFirstOrdering) { NullsFirstOrdering<?> that = (NullsFirstOrdering<?>) object; return this.ordering.equals(that.ordering); } return false; } @Override public int hashCode() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Jun 04 13:03:16 GMT 2025 - 2.7K bytes - Click Count (0) -
android/guava/src/com/google/common/primitives/Longs.java
// Overridden to prevent a ton of boxing return (target instanceof Long) && Longs.indexOf(array, (Long) target, start, end) != -1; } @Override public int indexOf(@Nullable Object target) { // Overridden to prevent a ton of boxing if (target instanceof Long) { int i = Longs.indexOf(array, (Long) target, start, end); if (i >= 0) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Oct 22 18:14:49 GMT 2025 - 29K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableSet.java
* TODO(lowasser): consider checking for Multiset here */ // Don't refer to ImmutableSortedSet by name so it won't pull in all that code if (elements instanceof ImmutableSet && !(elements instanceof SortedSet)) { @SuppressWarnings("unchecked") // all supported methods are covariant ImmutableSet<E> set = (ImmutableSet<E>) elements; if (!set.isPartialView()) { return set;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Oct 11 14:54:00 GMT 2025 - 22.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/InternersTest.java
MyInt(int i) { this.i = i; } @Override public int hashCode() { return i; } @Override public boolean equals(Object o) { return o instanceof MyInt && ((MyInt) o).i == i; } } public void testAsFunction_simplistic() { String canonical = "a"; String not = new String("a"); Function<String, String> internerFunction =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 4.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/query/QueryCommandTemplateMethodTest.java
(field, text, boost) -> QueryBuilders.matchQuery(field, text).boost(boost)); // Should build default query assertNotNull(result); assertTrue(result instanceof DefaultQueryBuilder); } /** * Test convertWithFieldCheck() with search field. */ @Test public void test_convertWithFieldCheck_withSearchField() {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.5K bytes - Click Count (0) -
guava/src/com/google/common/collect/ImmutableSetMultimap.java
* we always return a new instance with a null valueComparator, as we already do if the input is * empty or a partial view? * * Related: Should methods that do accept a comparator (like fromMapEntries, or like this one if * we were to choose to *preserve* an input comparator) return not the generic empty of() * instance but instead an empty ImmutableSetMultimap instance with the requestedCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 19 22:57:35 GMT 2026 - 26.1K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/service/SearchLogService.java
public void deleteSearchLog(final Object e) { if (e instanceof final ClickLog clickLog) { clickLogBhv.delete(clickLog); } else if (e instanceof final FavoriteLog favoriteLog) { favoriteLogBhv.delete(favoriteLog); } else if (e instanceof final UserInfo userInfo) { userInfoBhv.delete(userInfo); } else if (e instanceof final SearchLog searchLog) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 32.7K bytes - Click Count (0)