Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 476 for indexFor (0.16 sec)

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

        assertThat(Booleans.indexOf(ARRAY_TRUE, new boolean[0])).isEqualTo(0);
      }
    
      public void testIndexOf_arrays() {
        assertThat(Booleans.indexOf(EMPTY, false)).isEqualTo(-1);
        assertThat(Booleans.indexOf(ARRAY_FALSE, true)).isEqualTo(-1);
        assertThat(Booleans.indexOf(ARRAY_FALSE_FALSE, true)).isEqualTo(-1);
        assertThat(Booleans.indexOf(ARRAY_FALSE, false)).isEqualTo(0);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Mar 04 15:43:29 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. pkg/controller/history/controller_history.go

    			// We ignore cases where the parent no longer owns the revision or where the revision has no
    			// owner.
    			return nil, nil
    		}
    	}
    	return released, err
    }
    
    type fakeHistory struct {
    	indexer cache.Indexer
    	lister  appslisters.ControllerRevisionLister
    }
    
    func (fh *fakeHistory) ListControllerRevisions(parent metav1.Object, selector labels.Selector) ([]*apps.ControllerRevision, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 05 13:33:52 UTC 2021
    - 18.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/cel/library/lists.go

    //
    //	[1, 2, 2, 3].indexOf(2) // returns 1
    //	['a', 'b', 'b', 'c'].lastIndexOf('b') // returns 2
    //	[1.0].indexOf(1.1) // returns -1
    //	[].indexOf('string') // returns -1
    func Lists() cel.EnvOption {
    	return cel.Lib(listsLib)
    }
    
    var listsLib = &lists{}
    
    type lists struct{}
    
    func (*lists) LibraryName() string {
    	return "k8s.lists"
    }
    
    var paramA = cel.TypeParamType("A")
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Aug 23 21:31:27 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/InitScriptExecutionIntegrationTest.groovy

            executer.gradleUserHomeDir.file('init.d/c.gradle') << 'println "init #c#"'
    
            when:
            run()
    
            then:
            def a = output.indexOf('init #a#')
            def b = output.indexOf('init #b#')
            def c = output.indexOf('init #c#')
            a < b
            b < c
        }
    
        def "executes init script with correct environment"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/IntsTest.java

      }
    
      public void testIndexOf() {
        assertThat(Ints.indexOf(EMPTY, (int) 1)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, (int) 2)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY234, (int) 1)).isEqualTo(-1);
        assertThat(Ints.indexOf(new int[] {(int) -1}, (int) -1)).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, (int) 2)).isEqualTo(0);
        assertThat(Ints.indexOf(ARRAY234, (int) 3)).isEqualTo(1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 06 16:10:08 UTC 2024
    - 28.4K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.indexOf(ARRAY1, ARRAY1)).isEqualTo(0);
        assertThat(Longs.indexOf(ARRAY234, ARRAY234)).isEqualTo(0);
        assertThat(Longs.indexOf(ARRAY234, new long[] {(long) 2, (long) 3})).isEqualTo(0);
        assertThat(Longs.indexOf(ARRAY234, new long[] {(long) 3, (long) 4})).isEqualTo(1);
        assertThat(Longs.indexOf(ARRAY234, new long[] {(long) 3})).isEqualTo(1);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 30K bytes
    - Viewed (0)
  7. platforms/software/testing-base/src/main/java/org/gradle/api/internal/tasks/testing/report/CompositeTestResults.java

            int maxPos = Math.min(thisUrl.length(), otherUrl.length());
            int endPrefix = 0;
            while (endPrefix < maxPos) {
                int endA = thisUrl.indexOf('/', endPrefix);
                int endB = otherUrl.indexOf('/', endPrefix);
                if (endA != endB || endA < 0) {
                    break;
                }
                if (!thisUrl.regionMatches(endPrefix, otherUrl, endPrefix, endA - endPrefix)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 20:52:40 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  8. platforms/software/resources-http/src/main/java/org/gradle/internal/resource/transport/http/HttpResponseResource.java

            if (disposition != null) {
                // extracts file name from header field
                int beginIndex = disposition.indexOf("filename=\"");
                if (beginIndex > 0) {
                    int endIndex = disposition.indexOf(';', beginIndex + 11); // find the next semicolon
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/PluginDslSupport.groovy

            withPlugins([:], aliases.collectEntries { [it, null] })
        }
    
        void withPluginsBlockContents(String block) {
            def text = buildFile.text
            int idx = text.indexOf('allprojects')
            text = """${text.substring(0, idx)}
                plugins {
                    $block
                }
    
    ${text.substring(idx)}
            """
            buildFile.text = text
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. pkg/ctrlz/assets/static/js/popper-1.12.9.min.js

    ement.clientHeight,window.innerHeight||0):J(document.documentElement.clientWidth,window.innerWidth||0),a/100*r}return r}function z(e,t,o,i){var n=[0,0],r=-1!==['right','left'].indexOf(i),p=e.split(/(\+|\-)/).map(function(e){return e.trim()}),s=p.indexOf(T(p,function(e){return-1!==e.search(/,|\s/)}));p[s]&&-1===p[s].indexOf(',')&&console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');var d=/\s*,\s*|\s+/,a=-1===s?[p]:[p.slice(0,s).concat([p[s].split(d)[0]]),[p...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 18.7K bytes
    - Viewed (0)
Back to top