Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 204 for setDist (0.12 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/AbstractPropertyJavaInterOpIntegrationTest.groovy

                            t.getFlag().set(true);
                            t.getMessage().set("some value");
                            t.getNumber().set(1.23);
                            t.getList().set(Arrays.asList(1, 2));
                            t.getSet().set(Arrays.asList(1, 2));
                            Map<Integer, Boolean> map = new LinkedHashMap<>();
                            map.put(1, true);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  2. test/typeparam/issue48042.go

    	x = g[T]
    	return x.(func()func()(*T))()()
    }
    func (l *Foo[T]) g() func() (*T) {
    	return func() (*T) {
    		t := new(T)
    		reflect.ValueOf(t).Elem().SetInt(100)
    		return t
    	}
    }
    func g[T any]() func() (*T) {
    	return func() (*T) {
    		t := new(T)
    		reflect.ValueOf(t).Elem().SetInt(100)
    		return t
    	}
    }
    
    func main() {
    	foo := Foo[int]{}
    	// Make sure the function conversion is correct
    	if n := *(foo.f1()) ; n != 100{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  3. src/encoding/gob/decode.go

    	if v < math.MinInt8 || math.MaxInt8 < v {
    		error_(i.ovfl)
    	}
    	value.SetInt(v)
    }
    
    // decUint8 decodes an unsigned integer and stores it as a uint8 in value.
    func decUint8(i *decInstr, state *decoderState, value reflect.Value) {
    	v := state.decodeUint()
    	if math.MaxUint8 < v {
    		error_(i.ovfl)
    	}
    	value.SetUint(v)
    }
    
    // decInt16 decodes an integer and stores it as an int16 in value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:10:23 UTC 2023
    - 40.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ManagedPropertyJavaInterOpIntegrationTest.groovy

                    @Internal
                    public abstract Property<Double> getNumber();
    
                    @Internal
                    public abstract ListProperty<Integer> getList();
    
                    @Internal
                    public abstract SetProperty<Integer> getSet();
    
                    @Internal
                    public abstract MapProperty<Integer, Boolean> getMap();
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java

        assertTrue(
            "removeAll(intersectingCollection) should return true",
            getList().removeAll(MinimalCollection.of(duplicate)));
        assertFalse(
            "after removeAll(e), a collection should not contain e even "
                + "if it initially contained e more than once.",
            getList().contains(duplicate));
      }
    
      // All other cases are covered by CollectionRemoveAllTester.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/testers/ListRemoveAllTester.java

        assertTrue(
            "removeAll(intersectingCollection) should return true",
            getList().removeAll(MinimalCollection.of(duplicate)));
        assertFalse(
            "after removeAll(e), a collection should not contain e even "
                + "if it initially contained e more than once.",
            getList().contains(duplicate));
      }
    
      // All other cases are covered by CollectionRemoveAllTester.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. src/math/big/int.go

    		return t.bit(uint(i)) ^ 1
    	}
    
    	return x.abs.bit(uint(i))
    }
    
    // SetBit sets z to x, with x's i'th bit set to b (0 or 1).
    // That is, if b is 1 SetBit sets z = x | (1 << i);
    // if b is 0 SetBit sets z = x &^ (1 << i). If b is not 0 or 1,
    // SetBit will panic.
    func (z *Int) SetBit(x *Int, i int, b uint) *Int {
    	if i < 0 {
    		panic("negative bit index")
    	}
    	if x.neg {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 17:02:38 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  8. src/math/big/hilbert_test.go

    	a := newMatrix(n, n)
    	for i := 0; i < n; i++ {
    		for j := 0; j < n; j++ {
    			x1 := new(Rat).SetInt64(int64(i + j + 1))
    			x2 := new(Rat).SetInt(new(Int).Binomial(int64(n+i), int64(n-j-1)))
    			x3 := new(Rat).SetInt(new(Int).Binomial(int64(n+j), int64(n-i-1)))
    			x4 := new(Rat).SetInt(new(Int).Binomial(int64(i+j), int64(i)))
    
    			x1.Mul(x1, x2)
    			x1.Mul(x1, x3)
    			x1.Mul(x1, x4)
    			x1.Mul(x1, x4)
    
    			if (i+j)&1 != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 08 04:08:51 UTC 2014
    - 2.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/testers/ListLastIndexOfTester.java

    @Ignore // Affects only Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    public class ListLastIndexOfTester<E> extends AbstractListIndexOfTester<E> {
      @Override
      protected int find(Object o) {
        return getList().lastIndexOf(o);
      }
    
      @Override
      protected String getMethodName() {
        return "lastIndexOf";
      }
    
      @CollectionFeature.Require(absent = REJECTS_DUPLICATES_AT_CREATION)
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 2.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/dryrun.go

    	return s.Storage.Get(ctx, key, opts, objPtr)
    }
    
    func (s *DryRunnableStorage) GetList(ctx context.Context, key string, opts storage.ListOptions, listObj runtime.Object) error {
    	return s.Storage.GetList(ctx, key, opts, listObj)
    }
    
    func (s *DryRunnableStorage) GuaranteedUpdate(
    	ctx context.Context, key string, destination runtime.Object, ignoreNotFound bool,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 20:40:48 UTC 2023
    - 3.8K bytes
    - Viewed (0)
Back to top