- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 223 for mapvar (0.12 sec)
-
maven-api-impl/src/main/java/org/apache/maven/internal/impl/MappedList.java
public class MappedList<U, V> extends AbstractList<U> { private final List<V> list; private final Function<V, U> mapper; public MappedList(List<V> list, Function<V, U> mapper) { this.list = list; this.mapper = mapper; } @Override public U get(int index) { return mapper.apply(list.get(index)); } @Override public int size() { return list.size(); }
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/restmapper_test.go
mapper := NewDefaultRESTMapper([]schema.GroupVersion{expectedGroupVersion1, expectedGroupVersion2}) mapper.Add(expectedGroupVersion1.WithKind("InternalObject"), RESTScopeNamespace) mapper.Add(expectedGroupVersion2.WithKind("OtherObject"), RESTScopeNamespace) // pick default matching object kind based on search order mapping, err := mapper.RESTMapping(otherObjectGK) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Nov 01 08:38:57 UTC 2020 - 28.9K bytes - Viewed (0) -
operator/pkg/tpath/struct.go
if path[0] == "" { return nil, false, fmt.Errorf("getFromStructPath path %s, empty map key value", path) } mapVal := val.MapIndex(reflect.ValueOf(path[0])) if !mapVal.IsValid() { return nil, false, fmt.Errorf("getFromStructPath path %s, path does not exist", path) } return getFromStructPath(mapVal.Interface(), path[1:]) case reflect.Slice: idx, err := strconv.Atoi(path[0]) if err != nil {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Jul 25 19:30:47 UTC 2022 - 4.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/cap_freebsd.go
return int(right >> 62) } func capver(rights *CapRights) int { return caprver(rights.Rights[0]) } func caparsize(rights *CapRights) int { return capver(rights) + 2 } // CapRightsSet sets the permissions in setrights in rights. func CapRightsSet(rights *CapRights, setrights []uint64) error { // This is essentially a copy of cap_rights_vset() if capver(rights) != CAP_RIGHTS_VERSION_00 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 5K bytes - Viewed (0) -
subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/RegExpNameMapperTest.java
@Test public void testRenameWithCapture() { RegExpNameMapper mapper = new RegExpNameMapper("(.+).java", "$1Test.java"); assertEquals("SourceTest.java", mapper.transform("Source.java")); assertEquals("SecondTest.java", mapper.transform("Second.java")); } @Test public void testRenameNoMatch() { RegExpNameMapper mapper = new RegExpNameMapper("(.+).java", "$1Test.java");
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 22 19:00:51 UTC 2019 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/api/meta/priority_test.go
}, result: schema.GroupVersionResource{Group: "one", Version: "a", Resource: "second"}, }, } for _, tc := range tcs { mapper := PriorityRESTMapper{Delegate: tc.delegate, ResourcePriority: tc.resourcePatterns} actualResult, actualErr := mapper.ResourceFor(schema.GroupVersionResource{}) if e, a := tc.result, actualResult; e != a { t.Errorf("%s: expected %v, got %v", tc.name, e, a) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Apr 06 15:24:58 UTC 2018 - 13.6K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/MappedCollection.java
public class MappedCollection<U, V> extends AbstractCollection<U> { private final Collection<V> list; private final Function<V, U> mapper; public MappedCollection(Collection<V> list, Function<V, U> mapper) { this.list = list; this.mapper = mapper; } @Override public Iterator<U> iterator() { Iterator<V> it = list.iterator(); return new Iterator<U>() {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Mon Mar 25 10:50:01 UTC 2024 - 1.7K bytes - Viewed (0) -
staging/src/k8s.io/cli-runtime/pkg/genericclioptions/config_flags_fake.go
} // ToRESTMapper implements RESTClientGetter. // Returns a mapper. func (f *TestConfigFlags) ToRESTMapper() (meta.RESTMapper, error) { if f.restMapper != nil { return f.restMapper, nil } if f.discoveryClient != nil { mapper := restmapper.NewDeferredDiscoveryRESTMapper(f.discoveryClient) expander := restmapper.NewShortcutExpander(mapper, f.discoveryClient, nil) return expander, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 11 15:04:11 UTC 2023 - 3.9K bytes - Viewed (0) -
pilot/pkg/networking/core/match/match_test.go
"istio.io/istio/pkg/util/protomarshal" ) func TestCleanupEmptyMaps(t *testing.T) { tc := []struct { name string given func() Mapper want func() *matcher.Matcher }{ { name: "empty map at depth = 0", given: func() Mapper { // root (dest port): // <no matches> // fallback (dest ip): // 1.2.3.4: chain fallback := NewDestinationIP()
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 3.5K bytes - Viewed (0) -
pom.xml
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu May 30 06:49:02 UTC 2024 - 48.7K bytes - Viewed (0)