Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 37 for boxed (0.04 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy

    @UnsupportedWithConfigurationCache(because = "software model")
    class ScalarTypesInManagedModelIntegrationTest extends AbstractIntegrationSpec {
    
        def "values of primitive types and boxed primitive types are widened as usual when using groovy"() {
            when:
            buildScript '''
                @Managed
                interface PrimitiveTypes {
                    Long getLongPropertyFromInt()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.1K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/typeconversion/TypeConverter.java

     * limitations under the License.
     */
    
    package org.gradle.internal.typeconversion;
    
    public interface TypeConverter {
        /**
         * @param type The target type. Should be the boxed type for primitives.
         * @throws TypeConversionException On failure.
         * @throws UnsupportedNotationException On unsupported input.
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 1009 bytes
    - Viewed (0)
  3. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/types/KtTypeMappingMode.kt

        SUPER_TYPE,
    
        /**
         * Similar to [SUPER_TYPE], except for that Kotlin collections remain as-is.
         */
        SUPER_TYPE_KOTLIN_COLLECTIONS_AS_IS,
    
        /**
         * When method return type should be boxed (e.g., kotlin.Int to Ljava/lang/Integer;)
         */
        RETURN_TYPE_BOXED,
    
        /**
         * Optimal mode to convert the return type of declarations if it's part of signature.
         */
        RETURN_TYPE,
    
        /**
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:34 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/PreconditionsTest.java

        boolean aBoolean = true;
        Long boxedLong = null;
        int anInt = 1;
        // With a boxed predicate, no overloads can be selected in phase 1
        // ambiguous without the call to .booleanValue to unbox the Boolean
        Preconditions.checkState(boxedBoolean.booleanValue(), "", 1);
        // ambiguous without the cast to Object because the boxed predicate prevents any overload from
        // being selected in phase 1
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 19.8K bytes
    - Viewed (0)
  5. subprojects/core/src/main/java/org/gradle/internal/typeconversion/DefaultTypeConverter.java

        }
    
        private static class CharacterConverter extends CharSequenceConverter<Character> {
            private final Class<Character> target;
    
            public CharacterConverter(Class<Character> boxed, Class<Character> target) {
                super(boxed);
                this.target = target;
            }
    
            @Override
            public void convert(String notation, NotationConvertResult<? super Character> result) throws TypeConversionException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/attributes/DefaultAttributesSchema.java

                    // If no attribute precedence has been set anywhere, we can just iterate in order
                    return new PrecedenceResult(IntStream.range(0, requested.size()).boxed().collect(Collectors.toList()));
                } else {
                    // Populate requested attribute -> position in requested attribute list
                    final Map<String, Integer> remaining = new LinkedHashMap<>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 26 16:59:54 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/Streams.java

       */
      public static OptionalInt findLast(IntStream stream) {
        // findLast(Stream) does some allocation, so we might as well box some more
        java.util.Optional<Integer> boxedLast = findLast(stream.boxed());
        return boxedLast.map(OptionalInt::of).orElse(OptionalInt.empty());
      }
    
      /**
       * Returns the last element of the specified stream, or {@link OptionalLong#empty} if the stream
       * is empty.
       *
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/CollectSpliterators.java

        }
      }
    
      /**
       * Implementation of {@link Stream#flatMap} with a primitive spliterator output type.
       *
       * @param <InElementT> the element type of the input spliterator
       * @param <OutElementT> the (boxed) element type of the output spliterators
       * @param <OutConsumerT> the specialized consumer type for the primitive output type
       * @param <OutSpliteratorT> the primitive spliterator type associated with {@code OutElementT}
       */
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 18:19:31 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  9. src/internal/syscall/windows/zsyscall_windows.go

    // Errno values.
    const (
    	errnoERROR_IO_PENDING = 997
    )
    
    var (
    	errERROR_IO_PENDING error = syscall.Errno(errnoERROR_IO_PENDING)
    	errERROR_EINVAL     error = syscall.EINVAL
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e syscall.Errno) error {
    	switch e {
    	case 0:
    		return errERROR_EINVAL
    	case errnoERROR_IO_PENDING:
    		return errERROR_IO_PENDING
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 11:49:46 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. src/syscall/syscall_unix.go

    }
    
    // Do the interface allocations only once for common
    // Errno values.
    var (
    	errEAGAIN error = EAGAIN
    	errEINVAL error = EINVAL
    	errENOENT error = ENOENT
    )
    
    // errnoErr returns common boxed Errno values, to prevent
    // allocations at runtime.
    func errnoErr(e Errno) error {
    	switch e {
    	case 0:
    		return nil
    	case EAGAIN:
    		return errEAGAIN
    	case EINVAL:
    		return errEINVAL
    	case ENOENT:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top