Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 163 for arrayT (0.16 sec)

  1. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        String[] array = Iterators.toArray(iterator, String.class);
        assertTrue(Arrays.equals(new String[0], array));
      }
    
      @GwtIncompatible // Iterators.toArray(Iterator, Class)
      public void testToArraySingleton() {
        Iterator<String> iterator = Collections.singletonList("a").iterator();
        String[] array = Iterators.toArray(iterator, String.class);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 13:01:51 UTC 2024
    - 55.7K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/compilation_test.go

    			expectedSetCost:  62,
    		},
    		{
    			name:             "boolean array with all",
    			schemaGenerator:  genArrayWithRule("boolean", "self.all(x, true)"),
    			expectedCalcCost: 1887437,
    			setMaxElements:   5,
    			expectedSetCost:  17,
    		},
    		// all array-of-array tests should have the same expected cost along the same expression,
    		// since arrays-of-arrays are serialized the same in minimized form regardless of item type
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 20:13:14 UTC 2024
    - 51.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Iterators.java

      }
    
      private static final class ArrayItr<T extends @Nullable Object>
          extends AbstractIndexedListIterator<T> {
        static final UnmodifiableListIterator<Object> EMPTY = new ArrayItr<>(new Object[0], 0);
    
        private final T[] array;
    
        ArrayItr(T[] array, int position) {
          super(array.length, position);
          this.array = array;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 14:46:32 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Iterators.java

      }
    
      private static final class ArrayItr<T extends @Nullable Object>
          extends AbstractIndexedListIterator<T> {
        static final UnmodifiableListIterator<Object> EMPTY = new ArrayItr<>(new Object[0], 0);
    
        private final T[] array;
    
        ArrayItr(T[] array, int position) {
          super(array.length, position);
          this.array = array;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 03 14:46:32 UTC 2024
    - 50.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      private static byte[] prepended(byte b, byte[] array) {
        byte[] out = new byte[array.length + 1];
        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
        return out;
      }
    
      @GwtIncompatible // java.nio.ByteBuffer
      private static byte[] toByteArray(int h) {
        return ByteBuffer.allocate(4).putInt(h).array();
      }
    
      public void testNewEnumSet_empty() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 49.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/testdata/swagger.json

    \u003e 0\"}\n  - Rule accessing a property named \"redact__d\": {\"rule\": \"self.redact__underscores__d \u003e 0\"}\n\nEquality on arrays with x-kubernetes-list-type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type:\n  - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and\n    non-intersecting elements in `Y` are appended, retaining their partial order.\n...
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 13 18:37:59 UTC 2023
    - 55.4K bytes
    - Viewed (0)
  7. src/fmt/fmt_test.go

    	{"%g", 1.23456789e-3, "0.00123456789"},
    	{"%g", 1.23456789e20, "1.23456789e+20"},
    
    	// arrays
    	{"%v", array, "[1 2 3 4 5]"},
    	{"%v", iarray, "[1 hello 2.5 <nil>]"},
    	{"%v", barray, "[1 2 3 4 5]"},
    	{"%v", &array, "&[1 2 3 4 5]"},
    	{"%v", &iarray, "&[1 hello 2.5 <nil>]"},
    	{"%v", &barray, "&[1 2 3 4 5]"},
    
    	// slices
    	{"%v", slice, "[1 2 3 4 5]"},
    	{"%v", islice, "[1 hello 2.5 <nil>]"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:31:55 UTC 2024
    - 58.6K bytes
    - Viewed (0)
  8. tensorflow/c/c_api.h

    //  num_opers - `num_opers` contains the number of elements in the `opers` array
    //              or a special value of -1 meaning that no array is given.
    //              The distinction between an empty array of operations and no
    //              array of operations is necessary to distinguish the case of
    //              creating a function with no body (e.g. identity or permutation)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 26 21:08:15 UTC 2023
    - 82.3K bytes
    - Viewed (0)
  9. src/reflect/type.go

    	// Make an array type.
    	var iarray any = [1]unsafe.Pointer{}
    	prototype := *(**arrayType)(unsafe.Pointer(&iarray))
    	array := *prototype
    	array.TFlag = typ.TFlag & abi.TFlagRegularMemory
    	array.Str = resolveReflectName(newName(s, "", false, false))
    	array.Hash = fnv1(typ.Hash, '[')
    	for n := uint32(length); n > 0; n >>= 8 {
    		array.Hash = fnv1(array.Hash, byte(n))
    	}
    	array.Hash = fnv1(array.Hash, ']')
    	array.Elem = typ
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  10. test/fixedbugs/issue30116.out

                             array[-9876543210] runtime error: index out of range [-9876543210]
                                      array[-1] runtime error: index out of range [-1]
                                       array[0] no panic
                                       array[2] no panic
                                       array[3] runtime error: index out of range [3] with length 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 17:33:38 UTC 2019
    - 53.8K bytes
    - Viewed (0)
Back to top