Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for interfaceType (0.19 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/isolated/IsolationScheme.java

    public class IsolationScheme<IMPLEMENTATION, PARAMS> {
        private final Class<IMPLEMENTATION> interfaceType;
        private final Class<PARAMS> paramsType;
        private final Class<? extends PARAMS> noParamsType;
    
        public IsolationScheme(Class<IMPLEMENTATION> interfaceType, Class<PARAMS> paramsType, Class<? extends PARAMS> noParamsType) {
            this.interfaceType = interfaceType;
            this.paramsType = paramsType;
            this.noParamsType = noParamsType;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        private final int identity = generateInt();
        private final Class<?> interfaceType;
    
        FreshInvocationHandler(Class<?> interfaceType) {
          this.interfaceType = interfaceType;
        }
    
        @Override
        @CheckForNull
        protected Object handleInvocation(Object proxy, Method method, @Nullable Object[] args) {
          return interfaceMethodCalled(interfaceType, method);
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 28K bytes
    - Viewed (0)
  3. pkg/typemap/map.go

    type TypeMap struct {
    	inner map[reflect.Type]any
    }
    
    func NewTypeMap() TypeMap {
    	return TypeMap{make(map[reflect.Type]any)}
    }
    
    func Set[T any](t TypeMap, v T) {
    	interfaceType := reflect.TypeOf((*T)(nil)).Elem()
    	t.inner[interfaceType] = v
    }
    
    func Get[T any](t TypeMap) *T {
    	v, f := t.inner[reflect.TypeFor[T]()]
    	if f {
    		return ptr.Of(v.(T))
    	}
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 16:38:40 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        private final int identity = generateInt();
        private final Class<?> interfaceType;
    
        FreshInvocationHandler(Class<?> interfaceType) {
          this.interfaceType = interfaceType;
        }
    
        @Override
        @CheckForNull
        protected Object handleInvocation(Object proxy, Method method, @Nullable Object[] args) {
          return interfaceMethodCalled(interfaceType, method);
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Apr 17 16:33:44 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  5. src/internal/reflectlite/type.go

    // 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
    
    // ptrType represents a pointer type.
    type ptrType = abi.PtrType
    
    // sliceType represents a slice type.
    type sliceType = abi.SliceType
    
    // structType represents a struct type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  6. src/internal/abi/iface.go

    // It records the underlying concrete type (Type), the interface type it
    // is implementing (Inter), and some ancillary information.
    //
    // allocated in non-garbage-collected memory
    type ITab struct {
    	Inter *InterfaceType
    	Type  *Type
    	Hash  uint32     // copy of Type.Hash. Used for type switches.
    	Fun   [1]uintptr // variable sized. fun[0]==0 means Type does not implement Inter.
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 895 bytes
    - Viewed (0)
  7. src/internal/abi/type.go

    	if t.Kind() != Func {
    		return nil
    	}
    	return (*FuncType)(unsafe.Pointer(t))
    }
    
    // InterfaceType returns t cast to a *InterfaceType, or nil if its tag does not match.
    func (t *Type) InterfaceType() *InterfaceType {
    	if t.Kind() != Interface {
    		return nil
    	}
    	return (*InterfaceType)(unsafe.Pointer(t))
    }
    
    // Size returns the size of data with type t.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 17 21:09:59 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  8. src/runtime/type.go

    		}
    		return res
    	}
    	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
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. src/runtime/iface.go

    		*(*[]byte)(x) = val
    	}
    	return
    }
    
    func assertE2I(inter *interfacetype, t *_type) *itab {
    	if t == nil {
    		// explicit conversions require non-nil interface value.
    		panic(&TypeAssertionError{nil, nil, &inter.Type, ""})
    	}
    	return getitab(inter, t, false)
    }
    
    func assertE2I2(inter *interfacetype, t *_type) *itab {
    	if t == nil {
    		return nil
    	}
    	return getitab(inter, t, true)
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 22.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/positions.go

    				m = n.ElemList[0]
    				continue
    			}
    			return n.Pos()
    		// types
    		// case *ArrayType:
    		// case *SliceType:
    		// case *DotsType:
    		// case *StructType:
    		// case *Field:
    		// case *InterfaceType:
    		// case *FuncType:
    		// case *MapType:
    		// case *ChanType:
    
    		// statements
    		// case *EmptyStmt:
    		// case *LabeledStmt:
    		// case *BlockStmt:
    		// case *ExprStmt:
    		case *SendStmt:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 17:49:19 UTC 2024
    - 6.5K bytes
    - Viewed (0)
Back to top