Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 483 for union2 (0.26 sec)

  1. platforms/core-configuration/base-services-groovy/src/test/groovy/org/gradle/api/specs/SpecsTest.groovy

            expect:
            def union1 = Specs.union(spec1, spec2)
            union1 instanceof OrSpec
            union1.specs == [spec1, spec2]
    
            def union2 = Specs.union([spec1, spec2])
            union2 instanceof OrSpec
            union2.specs == [spec1, spec2]
        }
    
        def "union of none is none"() {
            expect:
            Specs.union(Specs.satisfyNone()) == Specs.satisfyNone()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 10:00:26 UTC 2023
    - 6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/union.go

    }
    
    func (u *Union) Len() int         { return len(u.terms) }
    func (u *Union) Term(i int) *Term { return u.terms[i] }
    
    func (u *Union) Underlying() Type { return u }
    func (u *Union) String() string   { return TypeString(u, nil) }
    
    // A Term represents a term in a Union.
    type Term term
    
    // NewTerm returns a new union term.
    func NewTerm(tilde bool, typ Type) *Term { return &Term{tilde, typ} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 15 16:16:58 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  3. src/go/types/union.go

    }
    
    func (u *Union) Len() int         { return len(u.terms) }
    func (u *Union) Term(i int) *Term { return u.terms[i] }
    
    func (u *Union) Underlying() Type { return u }
    func (u *Union) String() string   { return TypeString(u, nil) }
    
    // A Term represents a term in a [Union].
    type Term term
    
    // NewTerm returns a new union term.
    func NewTerm(tilde bool, typ Type) *Term { return &Term{tilde, typ} }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/Unions.java

    import java.util.Set;
    import java.util.stream.Collectors;
    
    class Unions {
        private final ExcludeFactory factory;
    
        public Unions(ExcludeFactory factory) {
            this.factory = factory;
        }
    
        /**
         * Tries to compute an union of 2 specs.
         * The result MUST be a simplification, otherwise this method returns null.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 6.8K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/excludes/factories/NormalizingExcludeFactory.java

    public class NormalizingExcludeFactory extends DelegatingExcludeFactory {
        private final Intersections intersections;
        private final Unions unions;
    
        public NormalizingExcludeFactory(ExcludeFactory delegate) {
            super(delegate);
            this.intersections = new Intersections(this);
            this.unions = new Unions(this);
        }
    
        @Override
        public ExcludeSpec anyOf(ExcludeSpec one, ExcludeSpec two) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 17.4K bytes
    - Viewed (0)
  6. docs/em/docs/tutorial/extra-models.md

        ```
    
    ## `Union` ⚖️ `anyOf`
    
    👆 💪 📣 📨 `Union` 2️⃣ 🆎, 👈 ⛓, 👈 📨 🔜 🙆 2️⃣.
    
    ⚫️ 🔜 🔬 🗄 ⏮️ `anyOf`.
    
    👈, ⚙️ 🐩 🐍 🆎 🔑 <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/typeparams/normalize.go

    				terms = tset2.terms
    			case *types.TypeParam, *types.Union:
    				// A stand-alone type parameter or union is not permitted as union
    				// term.
    				return nil, fmt.Errorf("invalid union term %T", t)
    			default:
    				if t.Type() == types.Typ[types.Invalid] {
    					continue
    				}
    				terms = termlist{{t.Tilde(), t.Type()}}
    			}
    			tset.terms = tset.terms.union(terms)
    			if len(tset.terms) > maxTermCount {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 18 21:28:13 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  8. docs/en/docs/tutorial/extra-models.md

        ```
    
    ## `Union` or `anyOf`
    
    You can declare a response to be the `Union` of two types, that means, that the response would be any of the two.
    
    It will be defined in OpenAPI with `anyOf`.
    
    To do that, use the standard Python type hint <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  9. docs/ru/docs/tutorial/extra-models.md

        ```
    
    ## `Union` или `anyOf`
    
    Вы можете определить ответ как `Union` из двух типов. Это означает, что ответ должен соответствовать одному из них.
    
    Он будет определён в OpenAPI как `anyOf`.
    
    Для этого используйте стандартные аннотации типов в Python <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note "Примечание"
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  10. docs/pt/docs/tutorial/extra-models.md

        ```
    
    ## `Union` ou `anyOf`
    
    Você pode declarar uma resposta como o `Union` de dois tipos, o que significa que a resposta seria qualquer um dos dois.
    
    Isso será definido no OpenAPI com `anyOf`.
    
    Para fazer isso, use a dica de tipo padrão do Python <a href="https://docs.python.org/3/library/typing.html#typing.Union" class="external-link" target="_blank">`typing.Union`</a>:
    
    !!! note
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri Mar 22 01:42:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
Back to top