- Sort Score
- Num 10 results
- Language All
Results 271 - 280 of 2,095 for instanceof (0.07 seconds)
-
android/guava/src/com/google/common/collect/ImmutableMultiset.java
*/ static <T> @Nullable ObjectCountHashMap<T> tryGetMap(Iterable<T> multiset) { if (multiset instanceof RegularImmutableMultiset) { return ((RegularImmutableMultiset<T>) multiset).contents; } else if (multiset instanceof AbstractMapBasedMultiset) { return ((AbstractMapBasedMultiset<T>) multiset).backingMap; } else { return null; } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 22.3K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedConfigurationConverter.java
String value = configuration.getValue(); try { Object result = null; if (null != value && !value.isEmpty()) { if (evaluator instanceof TypeAwareExpressionEvaluator typeAwareExpressionEvaluator) { result = typeAwareExpressionEvaluator.evaluate(value, type); } else { result = evaluator.evaluate(value);
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jul 17 07:40:49 GMT 2025 - 6.2K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/reflection/ReflectionValueExtractor.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 10.8K bytes - Click Count (0) -
android/guava/src/com/google/common/base/Suppliers.java
@ParametricNullness T instance) { return new SupplierOfInstance<>(instance); } private static final class SupplierOfInstance<T extends @Nullable Object> implements Supplier<T>, Serializable { @ParametricNullness final T instance; SupplierOfInstance(@ParametricNullness T instance) { this.instance = instance; } @Override @ParametricNullness public T get() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 21:24:28 GMT 2026 - 16.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java
assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype"); // Assert throwing/catching behavior with assertThrows SMBProtocolDecodingException thrown = assertThrows(SMBProtocolDecodingException.class, () -> { throw new SMBProtocolDecodingException(); }, "Should be throwable via assertThrows");
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 5.1K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java
Smb2TreeConnectResponse resp = new Smb2TreeConnectResponse(mockConfig); // Then assertNotNull(resp); assertTrue(resp instanceof ServerMessageBlock2Response); assertTrue(resp instanceof ServerMessageBlock2); assertTrue(resp instanceof TreeConnectResponse); } @Test @DisplayName("Should return correct share type constants") void testShareTypeConstants() { // Then
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 19.3K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
Smb2ChangeNotifyResponse resp = new Smb2ChangeNotifyResponse(mockConfig); // Then assertNotNull(resp); assertTrue(resp instanceof ServerMessageBlock2Response); assertTrue(resp instanceof ServerMessageBlock2); assertTrue(resp instanceof NotifyResponse); assertNotNull(resp.getNotifyInformation()); assertEquals(0, resp.getNotifyInformation().size()); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequestTest.java
} @Test @DisplayName("Should correctly inherit from ServerMessageBlock2Request") void testInheritance() { // Then assertTrue(request instanceof ServerMessageBlock2Request); assertTrue(request instanceof ServerMessageBlock2); } @Test @DisplayName("Should maintain immutability of structure size") void testStructureSizeImmutability() throws Exception {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 18.6K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/LookupInvoker.java
return null; } if (terminal instanceof FastTerminal ft) { terminal = ft.getTerminal(); } List<String> subs = new ArrayList<>(); subs.add("type=" + terminal.getType()); if (terminal instanceof TerminalExt te) { subs.add("provider=" + te.getProvider().name()); } if (terminal instanceof AbstractPosixTerminal pt) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Oct 28 13:01:07 GMT 2025 - 43.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/BenchmarkHelpers.java
checkState(newMap instanceof MapMakerInternalMap); newMap.putAll(map); return newMap; } }, MapMakerStrongKeysWeakValues { @Override public <K extends Comparable<K>, V> Map<K, V> create(Map<K, V> map) { ConcurrentMap<K, V> newMap = new MapMaker().weakValues().makeMap(); checkState(newMap instanceof MapMakerInternalMap); newMap.putAll(map);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 12.5K bytes - Click Count (0)