Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,033 for Ball (0.12 sec)

  1. guava-tests/test/com/google/common/util/concurrent/CallablesTest.java

      public void testReturning() throws Exception {
        assertNull(Callables.returning(null).call());
    
        Object value = new Object();
        Callable<Object> callable = Callables.returning(value);
        assertSame(value, callable.call());
        // Expect the same value on subsequent calls
        assertSame(value, callable.call());
      }
    
      @J2ktIncompatible
      @GwtIncompatible
      public void testAsAsyncCallable() throws Exception {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ImmutableList.java

       * }</pre>
       *
       * <p>Elements appear in the resulting list in the same order they were added to the builder.
       *
       * <p>Builder instances can be reused; it is safe to call {@link #build} multiple times to build
       * multiple lists in series. Each new list contains all the elements of the ones created before
       * it.
       *
       * @since 2.0
       */
      public static final class Builder<E> extends ImmutableCollection.Builder<E> {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  3. guava-tests/test/com/google/common/base/ToStringHelperTest.java

        final String expected = "TestClass{field1=1, value1, field2=value2}";
    
        assertEquals(expected, helper.toString());
        // Call toString again
        assertEquals(expected, helper.toString());
    
        // Make sure the cached value is reset when we modify the helper at all
        final String expected2 = "TestClass{field1=1, value1, field2=value2, 2}";
        helper.addValue(2);
        assertEquals(expected2, helper.toString());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableMultiset.java

       *         .addCopies(Bean.GARDEN, 6)
       *         .addCopies(Bean.RED, 8)
       *         .addCopies(Bean.BLACK_EYED, 10)
       *         .build();
       * }</pre>
       *
       * <p>Builder instances can be reused; it is safe to call {@link #build} multiple times to build
       * multiple multisets in series.
       *
       * @since 2.0
       */
      public static class Builder<E> extends ImmutableCollection.Builder<E> {
        final Multiset<E> contents;
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

            newCapacity = Integer.MAX_VALUE; // guaranteed to be >= newCapacity
          }
          return newCapacity;
        }
    
        /**
         * Returns a new immutable array. The builder can continue to be used after this call, to append
         * more values and build again.
         *
         * <p><b>Performance note:</b> the returned array is backed by the same array as the builder, so
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/TypeResolver.java

            throw new IllegalArgumentException("No type mapping from " + fromClass + " to " + to);
          }
        }.visit(from);
      }
    
      /**
       * Resolves all type variables in {@code type} and all downstream types and returns a
       * corresponding type with type variables resolved.
       */
      public Type resolveType(Type type) {
        checkNotNull(type);
        if (type instanceof TypeVariable) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/InternetDomainNameTest.java

          ImmutableSet.of("www", "foo.ihopethiswillneverbeapublicsuffix", "x.y.z");
    
      /**
       * Having a public suffix is equivalent to having a registry suffix, because all registry suffixes
       * are public suffixes, and all public suffixes have registry suffixes.
       */
      private static final ImmutableSet<String> NO_RS = NO_PS;
    
      private static final ImmutableSet<String> NON_PS =
          ImmutableSet.of(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 17.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

            newCapacity = Integer.MAX_VALUE; // guaranteed to be >= newCapacity
          }
          return newCapacity;
        }
    
        /**
         * Returns a new immutable array. The builder can continue to be used after this call, to append
         * more values and build again.
         *
         * <p><b>Performance note:</b> the returned array is backed by the same array as the builder, so
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/util/concurrent/UninterruptibleFutureTest.java

         *
         * 1. The client thread begins to block on a get() call to a future.
         * 2. The client thread is interrupted sometime before the result would be
         *   available.
         * 3. We expect the client's get() to throw an InterruptedException.
         * 4. We expect the client thread's interrupt state to be false.
         * 5. The client thread again makes a blocking call to get().
         * 6. Now the result becomes available.
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/util/concurrent/JdkFutureAdaptersTest.java

          throw new AssertionFailedError();
        }
    
        @Override
        public V get() throws InterruptedException {
          /*
           * Wait a little to give us time to call addListener before the future's
           * value is set in addition to the call we'll make after then.
           */
          allowGetToComplete.await(1, SECONDS);
          throw new RuntimeException("expected, should be caught");
        }
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 9.7K bytes
    - Viewed (0)
Back to top