- Sort Score
- Num 10 results
- Language All
Results 771 - 780 of 8,811 for klass (0.28 seconds)
-
android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java
} /** * A builder for creating immutable class-to-instance maps. Example: * * {@snippet : * static final ImmutableClassToInstanceMap<Handler> HANDLERS = * new ImmutableClassToInstanceMap.Builder<Handler>() * .put(FooHandler.class, new FooHandler()) * .put(BarHandler.class, new SubBarHandler()) * .put(Handler.class, new QuuxHandler()) * .build(); * } *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 7K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/EventRecorder.kt
inline fun <reified T : CallEvent> removeUpToEvent(): T = removeUpToEvent(T::class.java) inline fun <reified T : CallEvent> findEvent(): T = eventSequence.first { it is T } as T /** * Remove and return the next event from the recorded sequence. * * @param eventClass a class to assert that the returned event is an instance of, or null to * take any event class.
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 4.5K bytes - Click Count (0) -
src/main/java/jcifs/pac/kerberos/KerberosApRequest.java
import jcifs.pac.ASN1Util; import jcifs.pac.PACDecodingException; /** * Represents a Kerberos AP-REQ (Application Request) message. * This class parses and contains the authentication request sent from a client to a server. */ public class KerberosApRequest { private byte apOptions; private KerberosTicket ticket; /** * Creates a Kerberos AP request from a token. *Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.9K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/info/Smb2SetInfoRequestTest.java
byte expectedLevel = (byte) 0x04; when(mockFileInfo.getFileInformationLevel()).thenReturn(expectedLevel); request.setFileInformation(mockFileInfo); // Verify the info type, file info class, and info object were set try { Field infoTypeField = Smb2SetInfoRequest.class.getDeclaredField("infoType");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
assertThrows(UnsupportedOperationException.class, () -> map.subMap("a", "z").keySet().add("a")); assertThrows(UnsupportedOperationException.class, () -> map.tailMap("a").keySet().add("a")); assertThrows(UnsupportedOperationException.class, () -> map.headMap("r").keySet().add("a")); assertThrows( UnsupportedOperationException.class, () -> map.headMap("r").tailMap("m").keySet().add("a")); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 63.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/TypeVisitorTest.java
* @author Ben Yu */ @NullUnmarked public class TypeVisitorTest extends TestCase { public void testVisitNull() { new BaseTypeVisitor() .visit(((ParameterizedType) ArrayList.class.getGenericSuperclass()).getOwnerType()); } public void testVisitClass() { assertVisited(String.class); new BaseTypeVisitor() { @Override void visitClass(Class<?> t) {} }.visit(String.class); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 3.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/PackageSanityTests.java
* * @author Ben Yu */ @NullUnmarked public class PackageSanityTests extends AbstractPackageSanityTests { public PackageSanityTests() { setDefault(LockFreeBitArray.class, new LockFreeBitArray(1)); setDefault(HashCode.class, HashCode.fromInt(1)); setDefault(String.class, "MD5"); setDefault(int.class, 32); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/net/MediaTypeTest.java
assertThrows(IllegalArgumentException.class, () -> MediaType.parse("")); } public void testParse_badInput() { assertThrows(IllegalArgumentException.class, () -> MediaType.parse("/")); assertThrows(IllegalArgumentException.class, () -> MediaType.parse("text")); assertThrows(IllegalArgumentException.class, () -> MediaType.parse("text/")); assertThrows(IllegalArgumentException.class, () -> MediaType.parse("te<t/plain"));
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:11:48 GMT 2026 - 20.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/SettableFutureTest.java
assertFalse(future.isCancelled()); assertThrows(TimeoutException.class, () -> future.get(0, MILLISECONDS)); nested.set("foo"); assertTrue(future.isDone()); assertFalse(future.isCancelled()); assertThat(future.get()).isEqualTo("foo"); } private static class Foo {} private static class FooChild extends Foo {} public void testSetFuture_genericsHierarchy() throws Exception {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 7.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelper.java
*/ public final class EnhancedCompositeBeanHelper { // Cache for method lookups: Class -> PropertyName -> MethodInfo private static final ConcurrentMap<Class<?>, Map<String, MethodInfo>> METHOD_CACHE = new ConcurrentHashMap<>(); // Cache for field lookups: Class -> FieldName -> Field private static final ConcurrentMap<Class<?>, Map<String, Field>> FIELD_CACHE = new ConcurrentHashMap<>();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Nov 12 14:59:46 GMT 2025 - 12.3K bytes - Click Count (0)