Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 331 - 340 of 8,709 for KClass (0.06 seconds)

  1. src/test/java/jcifs/smb/SIDCacheImplTest.java

                SIDCacheImpl cache = new SIDCacheImpl(mock(CIFSContext.class));
                DcerpcHandle handle = mock(DcerpcHandle.class);
                LsaPolicyHandle policy = mock(LsaPolicyHandle.class);
                jcifs.SID[] none = new jcifs.SID[0];
    
                cache.resolveSids(handle, policy, none);
                verify(handle, times(1)).sendrecv(any(jcifs.dcerpc.msrpc.MsrpcLookupSids.class));
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14K bytes
    - Click Count (0)
  2. guava/src/com/google/common/base/Defaults.java

      })
      public static <T> @Nullable T defaultValue(Class<T> type) {
        checkNotNull(type);
        if (type.isPrimitive()) {
          if (type == boolean.class) {
            return (T) Boolean.FALSE;
          } else if (type == char.class) {
            return (T) Character.valueOf('\0');
          } else if (type == byte.class) {
            return (T) Byte.valueOf((byte) 0);
          } else if (type == short.class) {
            return (T) Short.valueOf((short) 0);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 02 19:58:40 GMT 2026
    - 2.2K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/ListGenerators.java

     * @author Hayward Chan
     */
    @GwtCompatible
    @NullMarked
    public final class ListGenerators {
    
      private ListGenerators() {}
    
      public static class ImmutableListOfGenerator extends TestStringListGenerator {
        @Override
        protected List<String> create(String[] elements) {
          return ImmutableList.copyOf(elements);
        }
      }
    
      public static class BuilderAddListGenerator extends TestStringListGenerator {
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 4.9K bytes
    - Click Count (0)
  4. src/main/java/org/codelibs/core/lang/ClassUtil.java

         * If the class is a wrapper class, returns its corresponding primitive class; otherwise, returns the class itself.
         *
         * @param clazz
         *            The class. Must not be {@literal null}.
         * @return The primitive class if the argument is a wrapper class, otherwise the class passed as the argument.
         */
        public static Class<?> getPrimitiveClassIfWrapper(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
    
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  5. guava-testlib/test/com/google/common/collect/testing/features/FeatureEnumTest.java

      private static Class<? extends Annotation> asAnnotation(Class<?> clazz) {
        if (clazz.isAnnotation()) {
          return (Class<? extends Annotation>) clazz;
        } else {
          throw new IllegalArgumentException(rootLocaleFormat("%s is not an annotation.", clazz));
        }
      }
    
      public void testFeatureEnums() throws Exception {
        assertGoodFeatureEnum(CollectionFeature.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 00:25:21 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/base/Predicates.java

      }
    
      /**
       * @see Predicates#subtypeOf(Class)
       */
      @J2ktIncompatible
      @GwtIncompatible // Class.isAssignableFrom
      private static final class SubtypeOfPredicate implements Predicate<Class<?>>, Serializable {
        private final Class<?> clazz;
    
        private SubtypeOfPredicate(Class<?> clazz) {
          this.clazz = checkNotNull(clazz);
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 26.6K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThrows(NullPointerException.class, () -> nos.write(null));
        assertThrows(NullPointerException.class, () -> nos.write(null, 0, 1));
        byte[] tenBytes = new byte[10];
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, -1, 1));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 1, -1));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2));
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/reflect/Invokable.java

     * which may be a subtype of the declaring class. For example:
     *
     * {@snippet :
     * Method getMethod = List.class.getMethod("get", int.class);
     * Invokable<List<String>, ?> invokable = new TypeToken<List<String>>() {}.method(getMethod);
     * assertEquals(TypeToken.of(String.class), invokable.getReturnType()); // Not Object.class!
     * assertEquals(new TypeToken<List<String>>() {}, invokable.getOwnerType());
     * }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 18.5K bytes
    - Click Count (0)
  9. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

        @Override
        public boolean equals(@Nullable Object o) {
          return o == this || o == null;
        }
    
        @Override
        public int hashCode() {
          return 0;
        }
      }
    
      /** Test class that returns true even if the test object is of the wrong class */
      private static class InvalidEqualsIncompatibleClassObject {
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed May 14 19:40:47 GMT 2025
    - 13.1K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/TagsTest.kt

            .plus(Boolean::class, true)
            .plus(String::class, "b")
        assertThat(tags[String::class]).isEqualTo("b")
        assertThat(tags.toString())
          .isEqualTo("{class kotlin.Int=5, class kotlin.Boolean=true, class kotlin.String=b}")
      }
    
      /** The implementation retains all but the first node from the original linked list. */
      @Test
      fun replaceLastElement() {
        val tags =
          EmptyTags
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Oct 24 11:37:46 GMT 2025
    - 7.1K bytes
    - Click Count (0)
Back to Top