Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 154 for subClasses (0.22 sec)

  1. guava/src/com/google/common/collect/AbstractIterator.java

    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public abstract class AbstractIterator<T extends @Nullable Object> extends UnmodifiableIterator<T> {
      private State state = State.NOT_READY;
    
      /** Constructor for use by subclasses. */
      protected AbstractIterator() {}
    
      private enum State {
        /** We have computed the next element and haven't returned it yet. */
        READY,
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Mar 18 02:04:10 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MultimapBuilder.java

          @SuppressWarnings("unchecked")
          @Override
          <K extends K0, V extends @Nullable Object> Map<K, Collection<V>> createMap() {
            // K must actually be K0, since enums are effectively final
            // (their subclasses are inaccessible)
            return (Map<K, Collection<V>>) new EnumMap<K0, Collection<V>>(keyClass);
          }
        };
      }
    
      private static final class ArrayListSupplier<V extends @Nullable Object>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/Invokable.java

       *     invocation conversion.
       * @throws InvocationTargetException if the underlying method or constructor throws an exception.
       */
      // All subclasses are owned by us and we'll make sure to get the R type right, including nullness.
      @SuppressWarnings({"unchecked", "nullness"})
      @CanIgnoreReturnValue
      @CheckForNull
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java

     * class. For example, testing that {@code nodes()} method returns the set of the nodes in the
     * graph. The following test cases are left for the subclasses to handle:
     *
     * <ul>
     *   <li>Test cases related to whether the graph is directed, undirected, mutable, or immutable.
     *   <li>Test cases related to the specific implementation of the {@link Network} interface.
     * </ul>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/CharSource.java

     * </ul>
     *
     * @since 14.0
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    public abstract class CharSource {
    
      /** Constructor for use by subclasses. */
      protected CharSource() {}
    
      /**
       * Returns a {@link ByteSource} view of this char source that encodes chars read from this source
       * as bytes using the given {@link Charset}.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/BenchmarkHelpers.java

    /**
     * Helper classes for various benchmarks.
     *
     * @author Christopher Swenson
     */
    final class BenchmarkHelpers {
      /** So far, this is the best way to test various implementations of {@link Set} subclasses. */
      public interface CollectionsImplEnum {
        <E extends Comparable<E>> Collection<E> create(Collection<E> contents);
    
        String name();
      }
    
      public interface MapsImplEnum {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.4K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/AbstractAbstractFutureTest.java

    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Base class for tests for emulated {@link AbstractFuture} that allow subclasses to swap in a
     * different "source Future" for {@link AbstractFuture#setFuture} calls.
     */
    @GwtCompatible(emulated = true)
    abstract class AbstractAbstractFutureTest extends TestCase {
      private TestedFuture<Integer> future;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 15:41:36 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     *
     * <p>{@link #setDefault} allows subclasses to specify default values for types.
     *
     * <p>This class incurs IO because it scans the classpath and reads classpath resources.
     *
     * @author Ben Yu
     * @since 14.0
     */
    // TODO: Switch to JUnit 4 and use @Parameterized and @BeforeClass
    // Note: @Test annotations are deliberate, as some subclasses specify @RunWith(JUnit4).
    @GwtIncompatible
    @J2ktIncompatible
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 19:43:49 UTC 2024
    - 17.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Cut.java

          } catch (ClassCastException wastNotComparableToOurType) {
            return false;
          }
        }
        return false;
      }
    
      // Prevent "missing hashCode" warning by explicitly forcing subclasses implement it
      @Override
      public abstract int hashCode();
    
      /*
       * The implementation neither produces nor consumes any non-null instance of type C, so
       * casting the type parameter is safe.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/extra-models.md

    Nós poderíamos fazer melhor.
    
    Podemos declarar um modelo `UserBase` que serve como base para nossos outros modelos. E então podemos fazer subclasses desse modelo que herdam seus atributos (declarações de tipo, validação, etc.).
    
    Toda conversão de dados, validação, documentação, etc. ainda funcionará normalmente.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top