Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for ArrayType (0.13 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ArrayOfPrimitiveValueSnapshot.java

                    return DecoderExtensions.readLengthPrefixedBooleans(decoder);
                }
            };
    
            public final Class<?> arrayType;
    
            PrimitiveType(Class<?> arrayType) {
                this.arrayType = arrayType;
            }
    
            public abstract Object clone(Object array);
    
            public abstract boolean equals(Object x, Object y);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 26 14:58:23 UTC 2024
    - 14.8K bytes
    - Viewed (0)
  2. src/internal/abi/type.go

    func (t *Type) MapType() *MapType {
    	if t.Kind() != Map {
    		return nil
    	}
    	return (*MapType)(unsafe.Pointer(t))
    }
    
    // ArrayType returns t cast to a *ArrayType, or nil if its tag does not match.
    func (t *Type) ArrayType() *ArrayType {
    	if t.Kind() != Array {
    		return nil
    	}
    	return (*ArrayType)(unsafe.Pointer(t))
    }
    
    // FuncType returns t cast to a *FuncType, or nil if its tag does not match.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  3. src/encoding/gob/type.go

    	registerBasics()
    	wireTypeUserInfo = userType(wireTypeType)
    }
    
    // Array type
    type arrayType struct {
    	CommonType
    	Elem typeId
    	Len  int
    }
    
    func newArrayType(name string) *arrayType {
    	a := &arrayType{CommonType{Name: name}, 0, 0}
    	return a
    }
    
    func (a *arrayType) init(elem gobType, len int) {
    	// Set our type id before evaluating the element's, in case it's our own.
    	setTypeId(a)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 02:00:26 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  4. src/runtime/type.go

    	}
    	res := md.textAddr(uint32(off))
    	return unsafe.Pointer(res)
    }
    
    type uncommontype = abi.UncommonType
    
    type interfacetype = abi.InterfaceType
    
    type maptype = abi.MapType
    
    type arraytype = abi.ArrayType
    
    type chantype = abi.ChanType
    
    type slicetype = abi.SliceType
    
    type functype = abi.FuncType
    
    type ptrtype = abi.PtrType
    
    type name = abi.Name
    
    type structtype = abi.StructType
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/AbstractValueProcessor.java

            T managedValue(Managed value, T state);
    
            T managedImmutableValue(Managed managed);
    
            T fromIsolatable(Isolatable<?> value);
    
            T emptyArray(Class<?> arrayType);
    
            T array(ImmutableList<T> elements, Class<?> arrayType);
    
            T primitiveArray(Object value);
    
            T emptyList();
    
            T list(ImmutableList<T> elements);
    
            T set(ImmutableSet<T> elements);
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Feb 05 19:08:37 UTC 2024
    - 10K bytes
    - Viewed (0)
  6. src/internal/reflectlite/type.go

    // Using a pointer to this struct reduces the overall size required
    // to describe a non-defined type with no methods.
    type uncommonType = abi.UncommonType
    
    // arrayType represents a fixed array type.
    type arrayType = abi.ArrayType
    
    // chanType represents a channel type.
    type chanType = abi.ChanType
    
    type funcType = abi.FuncType
    
    type interfaceType = abi.InterfaceType
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/analysisinternal/analysis.go

    		if elt == nil {
    			return nil
    		}
    		return &ast.ArrayType{
    			Len: &ast.BasicLit{
    				Kind:  token.INT,
    				Value: fmt.Sprintf("%d", t.Len()),
    			},
    			Elt: elt,
    		}
    	case *types.Slice:
    		elt := TypeExpr(f, pkg, t.Elem())
    		if elt == nil {
    			return nil
    		}
    		return &ast.ArrayType{
    			Elt: elt,
    		}
    	case *types.Map:
    		key := TypeExpr(f, pkg, t.Key())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/core/lang/GenericsUtilTest.java

            assertThat(returnClass, is(sameClass(Object.class)));
        }
    
        /**
         * @throws Exception
         */
        public void testArray() throws Exception {
            final Method m1 = ArrayType.class.getMethod("arrayOfStringClass");
            final Type t1 = m1.getGenericReturnType();
            final Type t2 = GenericsUtil.getElementTypeOfArray(t1);
            assertThat(GenericsUtil.getRawClass(t2), is(sameClass(Class.class)));
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              }
            }
          }
        }
        return null;
      }
    
      private static <T> T createEmptyArray(Class<T> arrayType) {
        // getComponentType() is non-null because we call createEmptyArray only with an array type.
        return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0));
      }
    
      // Internal implementations of some classes, with public default constructor that get() needs.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 21K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              }
            }
          }
        }
        return null;
      }
    
      private static <T> T createEmptyArray(Class<T> arrayType) {
        // getComponentType() is non-null because we call createEmptyArray only with an array type.
        return arrayType.cast(Array.newInstance(requireNonNull(arrayType.getComponentType()), 0));
      }
    
      // Internal implementations of some classes, with public default constructor that get() needs.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 20.5K bytes
    - Viewed (0)
Back to top