Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 302 for Short (0.17 sec)

  1. guava-tests/test/com/google/common/primitives/ShortsTest.java

                    },
                    new short[] {(short) 2, (short) 3, (short) 4}))
            .isEqualTo(1);
        assertThat(
                Shorts.indexOf(
                    new short[] {(short) 4, (short) 3, (short) 2},
                    new short[] {(short) 2, (short) 3, (short) 4}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

         *
         * @param o
         *            変換元のオブジェクト
         * @param pattern
         *            パターン文字列
         * @return 変換された{@link Short}
         */
        public static Short toShort(final Object o, final String pattern) {
            if (o == null) {
                return null;
            } else if (o instanceof Short) {
                return (Short) o;
            } else if (o instanceof Number) {
                return ((Number) o).shortValue();
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

                    },
                    new short[] {(short) 2, (short) 3, (short) 4}))
            .isEqualTo(1);
        assertThat(
                Shorts.indexOf(
                    new short[] {(short) 4, (short) 3, (short) 2},
                    new short[] {(short) 2, (short) 3, (short) 4}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Shorts.java

       * @return the same value cast to {@code short} if it is in the range of the {@code short} type,
       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
        return (short) value;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/Shorts.java

       * @return the same value cast to {@code short} if it is in the range of the {@code short} type,
       *     {@link Short#MAX_VALUE} if it is too large, or {@link Short#MIN_VALUE} if it is too small
       */
      public static short saturatedCast(long value) {
        if (value > Short.MAX_VALUE) {
          return Short.MAX_VALUE;
        }
        if (value < Short.MIN_VALUE) {
          return Short.MIN_VALUE;
        }
        return (short) value;
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cover_sync_atomic_import.txt

    go test -short -covermode=atomic -run=TestStoreInt64 sync/atomic
    go test -short -covermode=atomic -run=TestAnd8 internal/runtime/atomic
    
    # Skip remainder if no race detector support.
    [!race] skip
    
    go test -short -cover -race -run=TestStoreInt64 sync/atomic
    go test -short -cover -race -run=TestAnd8 internal/runtime/atomic
    
    -- go.mod --
    module coverdep
    
    go 1.16
    -- p.go --
    package p
    
    import _ "coverdep/p1"
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 00:18:30 UTC 2024
    - 1011 bytes
    - Viewed (0)
  7. src/cmd/go/testdata/script/cgo_stale_precompiled.txt

    # (See https://go.dev/issue/50892.)
    #
    # If running in non-short mode, explicitly vary CGO_CFLAGS
    # as a control case (to ensure that our regexps do catch rebuilds).
    
    [!short] env GOCACHE=$WORK/cache
    [!short] env CGO_CFLAGS=-DTestScript_cgo_stale_precompiled=true
    go build -x runtime/cgo
    [!short] stderr '[/\\]cgo'$GOEXE'["]? .* -importpath runtime/cgo'
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  8. src/cmd/go/testdata/script/install_modcacherw_issue64282.txt

    go clean -modcache
    
    
    # Also try it with a 'go install' that succeeds.
    # (But skip in short mode, because linking a binary is expensive.)
    [!short] go install -modcacherw example.com/printversion@v0.1.0
    [!short] cp $WORK/extraneous.txt $GOPATH/pkg/mod/example.com/printversion@v0.1.0/extraneous_file.go
    [!short] go clean -modcache
    
    
    # The flag should also be applied if given in GOFLAGS
    # instead of on the command line.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 29 17:53:43 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/cmd/go/internal/test/testflag.go

    			exitWithUsage()
    		}
    
    		if short := strings.TrimPrefix(f.Name, "test."); passFlagToTest[short] {
    			explicitArgs = append(explicitArgs, fmt.Sprintf("-test.%s=%v", short, f.Value))
    
    			// This flag has been overridden explicitly, so don't forward its implicit
    			// value from GOFLAGS.
    			delete(addFromGOFLAGS, short)
    			delete(addFromGOFLAGS, "test."+short)
    		}
    
    		args = remainingArgs
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modfetch/codehost/git_test.go

    	}
    	vcsName := "git"
    	for _, k := range []string{"hg"} {
    		if strings.Contains(remote, "/"+k+"/") {
    			vcsName = k
    		}
    	}
    	if testing.Short() && vcsName == "hg" {
    		t.Skipf("skipping hg test in short mode: hg is slow")
    	}
    	testenv.MustHaveExecPath(t, vcsName)
    	if runtime.GOOS == "android" && strings.HasSuffix(testenv.Builder(), "-corellium") {
    		testenv.SkipFlaky(t, 59940)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 19:46:23 UTC 2023
    - 18.9K bytes
    - Viewed (0)
Back to top