Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 93 for asSubclass (2.41 sec)

  1. src/test/java/jcifs/http/HandlerTest.java

            // to create the stream handler for the connection.
            URLStreamHandlerFactory mockFactory = mock(URLStreamHandlerFactory.class);
    
            // Create a concrete URLStreamHandler subclass instead of mocking
            URLStreamHandler mockStreamHandler = new URLStreamHandler() {
                @Override
                protected URLConnection openConnection(URL u) throws IOException {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/Types.java

        private static ClassOwnership detectJvmBehavior() {
          class LocalClass<T> {}
          Class<?> subclass = new LocalClass<String>() {}.getClass();
          // requireNonNull is safe because we're examining a type that's known to have a superclass.
          ParameterizedType parameterizedType =
              requireNonNull((ParameterizedType) subclass.getGenericSuperclass());
          for (ClassOwnership behavior : ClassOwnership.values()) {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 31 19:34:24 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ImmutableSet.java

       * elements and to build again.
       *
       * @since 2.0
       */
      public static class Builder<E> extends ImmutableCollection.Builder<E> {
        /*
         * `impl` is null only for instances of the subclass, ImmutableSortedSet.Builder. That subclass
         * overrides all the methods that access it here. Thus, all the methods here can safely assume
         * that this field is non-null.
         */
        private @Nullable SetBuilderImpl<E> impl;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Nov 07 16:09:47 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ForwardingNavigableSet.java

       * of {@link NavigableSet}, notably including {@link NavigableSet#descendingIterator}.
       *
       * <p>In many cases, you may wish to override {@link ForwardingNavigableSet#descendingSet} to
       * forward to this implementation or a subclass thereof.
       *
       * @since 12.0
       */
      protected class StandardDescendingSet extends Sets.DescendingSet<E> {
        /** Constructor for use by subclasses. */
        public StandardDescendingSet() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/util/transport/Transport.java

    import jcifs.smb1.util.LogStream;
    
    /**
     * This class simplifies communication for protocols that support
     * multiplexing requests. It encapsulates a stream and some protocol
     * knowledge (provided by a concrete subclass) so that connecting,
     * disconnecting, sending, and receiving can be syncronized
     * properly. Apparatus is provided to send and receive requests
     * concurrently.
     */
    
    public abstract class Transport implements Runnable {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/AbstractMapBasedMultiset.java

    import java.util.function.ObjIntConsumer;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Basic implementation of {@code Multiset<E>} backed by an instance of {@code Map<E, Count>}.
     *
     * <p>For serialization to work, the subclass must specify explicit {@code readObject} and {@code
     * writeObject} methods.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  7. guava/src/com/google/common/cache/CacheLoader.java

      }
    
      /**
       * Returns a cache loader based on an <i>existing</i> supplier instance. Note that there's no need
       * to create a <i>new</i> supplier just to pass it in here; just subclass {@code CacheLoader} and
       * implement {@link #load load} instead.
       *
       * <p>The returned object is serializable if {@code supplier} is serializable.
       *
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb1/smb1/DfsTest.java

        private MockedStatic<UniAddress> uniAddressMockedStatic;
        private MockedStatic<SmbTransport> smbTransportMockedStatic;
        private MockedStatic<Config> configMockedStatic;
    
        // Test subclass to control DISABLED flag
        private static class TestDfs extends Dfs {
            private boolean disabled;
    
            public void setDisabled(boolean disabled) {
                this.disabled = disabled;
            }
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

        assertThat(future.isDone()).isFalse();
        assertThat(future.set(1)).isTrue();
        assertSuccessful(future, 1);
      }
    
      /** Concrete subclass for testing. */
      private static class TestedFuture<V> extends AbstractFuture<V> {
        private static <V> TestedFuture<V> create() {
          return new TestedFuture<V>();
        }
      }
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb/DirFileEntryEnumIteratorBaseTest.java

                }
    
                @Override
                public String toString() {
                    return "Entry(" + name + ")";
                }
            };
        }
    
        // Controllable concrete subclass to drive behavior deterministically
        private static class TestIterator extends DirFileEntryEnumIteratorBase {
            private static FileEntry staticInitial;
            private static List<FileEntry[]> staticPages;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.5K bytes
    - Viewed (0)
Back to top