- Sort Score
- Num 10 results
- Language All
Results 441 - 450 of 2,436 for instanceOf (0.07 seconds)
-
benchmarks/src/main/java/org/elasticsearch/common/bytes/BytesArrayReadLongBenchmark.java
for (int i = 0; i < bytes / 8; i++) { tmp.writeLong(i); } bytesArray = tmp.copyBytes(); if (bytesArray instanceof BytesArray == false) { throw new AssertionError("expected BytesArray but saw [" + bytesArray.getClass() + "]"); } streamInput = bytesArray.streamInput(); } @Benchmark
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.3K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/common/bytes/PagedBytesReferenceReadLongBenchmark.java
final long bytes = new ByteSizeValue(dataMb, ByteSizeUnit.MB).getBytes(); for (int i = 0; i < bytes / 8; i++) { tmp.writeLong(i); } pagedBytes = tmp.bytes(); if (pagedBytes instanceof PagedBytesReference == false) { throw new AssertionError("expected PagedBytesReference but saw [" + pagedBytes.getClass() + "]"); } this.streamInput = pagedBytes.streamInput(); }
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.3K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/DomBuilder.groovy
} return element } protected Element createNode(Object name, Map attributes, Object value) { Element element = createNode(name, attributes) if (value instanceof Node) { element.appendChild(document.importNode(value, true)) } else { element.appendChild(document.createTextNode(value as String)) } return element }Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Wed Dec 09 08:14:05 GMT 2020 - 2.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/util/DocMapTest.java
@Test public void test_map_interface_compliance() { Map<String, Object> parentMap = new HashMap<>(); DocMap docMap = new DocMap(parentMap); assertTrue(docMap instanceof Map); assertTrue(docMap instanceof Map<?, ?>); Map<String, Object> genericMap = docMap; genericMap.put("test", "value"); assertEquals("value", genericMap.get("test")); }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 10.7K bytes - Click Count (0) -
android/guava/src/com/google/common/eventbus/SubscriberRegistry.java
* all super-classes, that are annotated with {@code @Subscribe}. The cache is shared across all * instances of this class; this greatly improves performance if multiple EventBus instances are * created and objects of the same class are registered on all of them. */ private static final LoadingCache<Class<?>, ImmutableList<Method>> subscriberMethodsCache =Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jul 08 18:32:10 GMT 2025 - 10.8K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/Task.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jan 10 08:42:00 GMT 2025 - 1.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/MapMakerTest.java
} catch (IllegalStateException expected) { } } public void testReturnsPlainConcurrentHashMapWhenPossible() { Map<?, ?> map = new MapMaker().initialCapacity(5).makeMap(); assertTrue(map instanceof ConcurrentHashMap); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/LegacyComparable.java
LegacyComparable that = (LegacyComparable) object; return this.value.compareTo(that.value); } @Override public boolean equals(@Nullable Object object) { if (object instanceof LegacyComparable) { LegacyComparable that = (LegacyComparable) object; return this.value.equals(that.value); } return false; } @Override public int hashCode() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 17:34:21 GMT 2025 - 2.5K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/logging/LoggingOutputStream.java
} public void forceFlush() { ((LoggingOutputStream) out).forceFlush(); } } public static void forceFlush(PrintStream ps) { if (ps instanceof LoggingPrintStream loggingPrintStream) { loggingPrintStream.forceFlush(); } }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Feb 12 12:31:43 GMT 2025 - 3K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/OrArtifactFilter.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.1K bytes - Click Count (0)