- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 135 for S1 (0.04 sec)
-
src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java
} public boolean hasRoles(final String[] acceptedRoles) { return stream(user.getRoleNames()) .get(stream -> stream.anyMatch(s1 -> stream(acceptedRoles).get(s3 -> s3.anyMatch(s2 -> s2.equals(s1))))); } public boolean hasGroup(final String group) { return stream(user.getGroupNames()).get(stream -> stream.anyMatch(s -> s.equals(group))); }
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.4K bytes - Viewed (0) -
test/typeparam/struct.go
import ( "fmt" ) type E[T any] struct { v T } type S1 struct { E[int] v string } type Eint = E[int] type Ebool = E[bool] type Eint2 = Eint type S2 struct { Eint Ebool v string } type S3 struct { *E[int] } func main() { s1 := S1{Eint{2}, "foo"} if got, want := s1.E.v, 2; got != want { panic(fmt.Sprintf("got %d, want %d", got, want)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 05 16:29:58 UTC 2024 - 801 bytes - Viewed (0) -
src/slices/slices.go
// returns 0 the result is 0 if len(s1) == len(s2), -1 if len(s1) < len(s2), // and +1 if len(s1) > len(s2). func CompareFunc[S1 ~[]E1, S2 ~[]E2, E1, E2 any](s1 S1, s2 S2, cmp func(E1, E2) int) int { for i, v1 := range s1 { if i >= len(s2) { return +1 } v2 := s2[i] if c := cmp(v1, v2); c != 0 { return c } } if len(s1) < len(s2) { return -1 } return 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 29 14:01:59 UTC 2024 - 13.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ObjectsTest.java
assertTrue(Objects.equal(1, 1)); assertTrue(Objects.equal(null, null)); // test distinct string objects String s1 = "foobar"; String s2 = new String(s1); assertTrue(Objects.equal(s1, s2)); assertFalse(Objects.equal(s1, null)); assertFalse(Objects.equal(null, s1)); assertFalse(Objects.equal("foo", "bar")); assertFalse(Objects.equal("1", 1)); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Feb 21 18:32:41 UTC 2024 - 2.3K bytes - Viewed (0) -
src/crypto/sha256/sha256block_amd64.s
; \ XORL y1, y0; \ // y0 = (e>>25) ^ (e>>11) // S1 XORL g, y2; \ // y2 = f^g // CH VPADDD XDWORD0, XTMP0, XTMP0; \ // XTMP0 = W[-7] + W[-16] // y1 = (e >> 6) // S1 RORXL $6, e, y1; \ // y1 = (e >> 6) // S1 ; \
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 47.3K bytes - Viewed (0) -
test/fixedbugs/issue65893.go
// compile // Copyright 2024 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package p type ( s = struct{ f func(s1) } s1 = struct{ i I } ) type I interface { S() *s
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 01:45:48 UTC 2024 - 269 bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue67547.go
} func _[P map[int]int]() { type A = P var m A clear(m) // don't report an error for m } type S1 struct { x int "S1.x" } type S2 struct { x int "S2.x" } func _[P1 S1, P2 S2]() { type A = P1 var p A _ = P2(p) // conversion must be valid } func _[P1 S1, P2 S2]() { var p P1 type A = P2 _ = A(p) // conversion must be valid } func _[P int | string]() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 1.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/MoreObjectsTest.java
/** Tests for {@link MoreObjects}. */ @GwtCompatible(emulated = true) public class MoreObjectsTest extends TestCase { public void testFirstNonNull_withNonNull() { String s1 = "foo"; String s2 = MoreObjects.firstNonNull(s1, "bar"); assertSame(s1, s2); Long n1 = 42L; Long n2 = MoreObjects.firstNonNull(null, n1); assertSame(n1, n2); Boolean b1 = true;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:24:55 UTC 2024 - 2K bytes - Viewed (0) -
src/runtime/runtime_test.go
v := *(*byte)(unsafe.Pointer(addr)) t.Logf("addr %#x: %#x\n", addr, v) } func eqstring_generic(s1, s2 string) bool { if len(s1) != len(s2) { return false } // optimization in assembly versions: // if s1.str == s2.str { return true } for i := 0; i < len(s1); i++ { if s1[i] != s2[i] { return false } } return true } func TestEqString(t *testing.T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 11.7K bytes - Viewed (0) -
src/crypto/elliptic/params.go
h.Add(h, curve.P) } i := new(big.Int).Lsh(h, 1) i.Mul(i, i) j := new(big.Int).Mul(h, i) s1 := new(big.Int).Mul(y1, z2) s1.Mul(s1, z2z2) s1.Mod(s1, curve.P) s2 := new(big.Int).Mul(y2, z1) s2.Mul(s2, z1z1) s2.Mod(s2, curve.P) r := new(big.Int).Sub(s2, s1) if r.Sign() == -1 { r.Add(r, curve.P) } yEqual := r.Sign() == 0 if xEqual && yEqual {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 17:46:09 UTC 2024 - 9.6K bytes - Viewed (0)