Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 168 for capture (0.07 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertAssignable(
            TypeToken.of(new TypeCapture<L>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertNotAssignable(
            TypeToken.of(new TypeCapture<R>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertAssignable(TypeToken.of(new TypeCapture<L>() {}.capture()), new TypeToken<List<R>>() {});
      }
    
      public void testisSupertypeOf_resolved() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/TypeResolverTest.java

                .where(
                    new TypeCapture<Iterable<Map<?, V>>>() {}.capture(),
                    new TypeCapture<Iterable<Map<String, Integer>>>() {}.capture());
        assertEquals(
            new TypeCapture<K>() {}.capture(), resolver.resolveType(new TypeCapture<K>() {}.capture()));
        assertEquals(Integer.class, resolver.resolveType(new TypeCapture<V>() {}.capture()));
      }
    
      public <T> void testWhere_mapFromWildcard() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/reflect/TypeResolverTest.java

                .where(
                    new TypeCapture<Iterable<Map<?, V>>>() {}.capture(),
                    new TypeCapture<Iterable<Map<String, Integer>>>() {}.capture());
        assertEquals(
            new TypeCapture<K>() {}.capture(), resolver.resolveType(new TypeCapture<K>() {}.capture()));
        assertEquals(Integer.class, resolver.resolveType(new TypeCapture<V>() {}.capture()));
      }
    
      public <T> void testWhere_mapFromWildcard() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

        assertAssignable(
            TypeToken.of(new TypeCapture<L>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertNotAssignable(
            TypeToken.of(new TypeCapture<R>() {}.capture()),
            TypeToken.of(new TypeCapture<L>() {}.capture()));
        assertAssignable(TypeToken.of(new TypeCapture<L>() {}.capture()), new TypeToken<List<R>>() {});
      }
    
      public void testisSupertypeOf_resolved() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 21:13:09 UTC 2024
    - 89.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/TypeResolver.java

       * {@code ArrayList<?>::set}.
       *
       * <p>Instead, {@code <?>} will be resolved to a capture in the form of a type variable {@code
       * <capture-of-? extends Object>}, effectively preventing {@code set} from accepting any type.
       */
      static TypeResolver invariantly(Type contextType) {
        Type invariantContext = WildcardCapturer.INSTANCE.capture(contextType);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  6. internal/s3select/sql/parser.go

    import (
    	"strings"
    
    	"github.com/alecthomas/participle"
    	"github.com/alecthomas/participle/lexer"
    )
    
    // Types with custom Capture interface for parsing
    
    // Boolean is a type for a parsed Boolean literal
    type Boolean bool
    
    // Capture interface used by participle
    func (b *Boolean) Capture(values []string) error {
    	*b = Boolean(strings.EqualFold(values[0], "true"))
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType ourType =
            Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class);
    
        new EqualsTester()
            .addEqualityGroup(jvmType, ourType)
            .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
            .addEqualityGroup(new TypeCapture<Map<String, Integer>>() {}.capture())
            .testEquals();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/TypesTest.java

        ParameterizedType ourType =
            Types.newParameterizedTypeWithOwner(Map.class, Entry.class, String.class, int[][].class);
    
        new EqualsTester()
            .addEqualityGroup(jvmType, ourType)
            .addEqualityGroup(new TypeCapture<Entry<String, String>>() {}.capture())
            .addEqualityGroup(new TypeCapture<Map<String, Integer>>() {}.capture())
            .testEquals();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 13:41:27 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

      public <T> void testVisitGenericArrayType() {
        Type type = new TypeCapture<T[]>() {}.capture();
        assertVisited(type);
        new BaseTypeVisitor() {
          @Override
          void visitGenericArrayType(GenericArrayType t) {}
        }.visit(type);
      }
    
      public <T> void testVisitParameterizedType() {
        Type type = new TypeCapture<Iterable<T>>() {}.capture();
        assertVisited(type);
        new BaseTypeVisitor() {
          @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

      /**
       * An object that can capture objects to be closed later, when a {@link ClosingFuture} pipeline is
       * done.
       */
      public static final class DeferredCloser {
        @RetainedWith private final CloseableList list;
    
        DeferredCloser(CloseableList list) {
          this.list = list;
        }
    
        /**
         * Captures an object to be closed when a {@link ClosingFuture} pipeline is done.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 08 19:36:35 UTC 2024
    - 98.5K bytes
    - Viewed (0)
Back to top