Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 3731 - 3740 of 4,422 for 1Final (0.04 seconds)

  1. android/guava-testlib/src/com/google/common/collect/testing/QueueTestSuiteBuilder.java

    import java.util.List;
    
    /**
     * Creates, based on your criteria, a JUnit test suite that exhaustively tests a queue
     * implementation.
     *
     * @author Jared Levy
     */
    @GwtIncompatible
    public final class QueueTestSuiteBuilder<E>
        extends AbstractCollectionTestSuiteBuilder<QueueTestSuiteBuilder<E>, E> {
      public static <E> QueueTestSuiteBuilder<E> using(TestQueueGenerator<E> generator) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/reflect/ReflectionTest.java

      }
    
      public void testNewProxyCantWorkOnAClass() throws Exception {
        assertThrows(
            IllegalArgumentException.class, () -> Reflection.newProxy(Object.class, X_RETURNER));
      }
    
      private static final InvocationHandler X_RETURNER =
          new InvocationHandler() {
            @Override
            public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
              return "x";
            }
          };
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/io/CountingInputStream.java

    import java.io.InputStream;
    
    /**
     * An {@link InputStream} that counts the number of bytes read.
     *
     * @author Chris Nokleberg
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public final class CountingInputStream extends FilterInputStream {
    
      private long count;
      private long mark = -1;
    
      /**
       * Wraps another input stream, counting the number of bytes read.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Dec 21 03:10:51 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/Atomics.java

    /**
     * Static utility methods pertaining to classes in the {@code java.util.concurrent.atomic} package.
     *
     * @author Kurt Alfred Kluever
     * @since 10.0
     */
    @GwtIncompatible
    public final class Atomics {
      private Atomics() {}
    
      /**
       * Creates an {@code AtomicReference} instance with no initial value.
       *
       * @return a new {@code AtomicReference} with no initial value
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.4K bytes
    - Click Count (0)
  5. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/testers/Platform.java

     */
    
    package com.google.common.collect.testing.testers;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * The emulation source used in GWT.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    final class Platform {
    
      // Use fewer steps in the ListIteratorTester in ListListIteratorTester because it's slow in prod
      // mode.
      static int listListIteratorTesterNumIterations() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/TestPlatform.java

    import java.util.concurrent.Future;
    import java.util.concurrent.TimeoutException;
    import org.jspecify.annotations.Nullable;
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    final class TestPlatform {
      static void verifyGetOnPendingFuture(Future<?> future) {
        try {
          future.get();
          fail();
        } catch (Exception e) {
          assertThat(e).isInstanceOf(IllegalStateException.class);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.3K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/util/concurrent/AtomicsTest.java

    /**
     * Unit test for {@link Atomics}.
     *
     * @author Kurt Alfred Kluever
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    public class AtomicsTest extends TestCase {
    
      private static final Object OBJECT = new Object();
    
      public void testNewReference() throws Exception {
        assertThat(Atomics.newReference().get()).isNull();
      }
    
      public void testNewReference_withInitialValue() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/repository/metadata/GroupRepositoryMetadata.java

    /**
     * Metadata for the group directory of the repository.
     *
     */
    @Deprecated
    public class GroupRepositoryMetadata extends AbstractRepositoryMetadata {
        private final String groupId;
    
        public GroupRepositoryMetadata(String groupId) {
            super(new Metadata());
            this.groupId = groupId;
        }
    
        @Override
        public boolean storedInGroupDirectory() {
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  9. compat/maven-compat/src/test/java/org/apache/maven/project/inheritance/t03/ProjectInheritanceTest.java

    import static org.junit.jupiter.api.Assertions.assertEquals;
    
    /**
     * A test which demonstrates maven's recursive inheritance where
     * a distinct value is taken from each parent contributing to
     * the final model of the project being assembled. There is no
     * overriding going on amongst the models being used in this test:
     * each model in the lineage is providing a value that is not present
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Mar 21 04:56:21 GMT 2025
    - 2.5K bytes
    - Click Count (0)
  10. compat/maven-settings/src/main/java/org/apache/maven/settings/io/xpp3/SettingsXpp3Writer.java

     * or {@link SettingsStaxWriter}
     */
    @Deprecated
    public class SettingsXpp3Writer {
    
        private final SettingsStaxWriter delegate;
    
        public SettingsXpp3Writer() {
            delegate = new SettingsStaxWriter();
            delegate.setAddLocationInformation(false);
        }
        /**
         * Method setFileComment.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Feb 25 08:27:34 GMT 2025
    - 2.5K bytes
    - Click Count (0)
Back to Top