Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for S1 (0.09 sec)

  1. android/guava-tests/test/com/google/common/base/MoreObjectsTest.java

    /** Tests for {@link MoreObjects}. */
    @GwtCompatible
    @NullUnmarked
    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: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SIDCacheImplTest.java

            }).when(handle).sendrecv(any());
    
            cache.resolveSids(handle, policy, in);
    
            // Verify fields resolved
            assertEquals("alice", s1.getAccountName());
            assertEquals("TESTDOM", s1.getDomainName());
            assertEquals(jcifs.SID.SID_TYPE_USER, s1.getType());
    
            assertEquals("Domain Users", s2.getAccountName());
            assertEquals("TESTDOM", s2.getDomainName());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14K bytes
    - Viewed (0)
  3. 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: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

            SmbSession s1 = new SmbSession(addr, 445, inet, 0, a1);
            SmbSession s2 = new SmbSession(addr, 445, inet, 0, a2);
            // same auth instance => matches
            assertTrue(s1.matches(a1));
            // different instance but equal content => matches
            assertTrue(s1.matches(a2));
            // not equal => no match
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/BufferCacheImplTest.java

            BufferCacheImpl impl = new BufferCacheImpl(3, 8);
            byte[] s1 = new byte[2];
            byte[] s2 = new byte[7];
    
            impl.releaseBuffer(s1);
            impl.releaseBuffer(s2);
    
            byte[] r1 = impl.getBuffer();
            byte[] r2 = impl.getBuffer();
    
            // Order is by first free slot (s1 then s2)
            assertSame(s1, r1);
            assertSame(s2, r2);
            assertEquals(2, r1.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.5K bytes
    - Viewed (0)
  6. 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: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/lang/StringUtil.java

         *
         * @param s1
         *            the string to check
         * @param s2
         *            the substring to find
         * @return true if the string contains the substring, false otherwise
         */
        public static boolean contains(final String s1, final String s2) {
            if (isEmpty(s1)) {
                return false;
            }
            return s1.indexOf(s2) >= 0;
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 21.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/Dfs.java

        synchronized void insert(final String path, final DfsReferral dr) {
            int s1, s2;
            String server, share, key;
    
            if (DISABLED) {
                return;
            }
    
            s1 = path.indexOf('\\', 1);
            s2 = path.indexOf('\\', s1 + 1);
            server = path.substring(1, s1);
            share = path.substring(s1 + 1, s2);
    
            key = path.substring(0, dr.pathConsumed).toLowerCase();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            byte[] fidBytes = new byte[] { 0x01, 0x02 };
            SmbFileHandleImpl h1 = new SmbFileHandleImpl(cfg, fidBytes, tree, "//u/one", 0x10, 0x20, 0x30, 0x40, 0L);
            String s1 = h1.toString();
            assertTrue(s1.contains("//u/one"));
            assertTrue(s1.contains("0102"), "Expected hex fileId in string");
    
            SmbFileHandleImpl h2 = new SmbFileHandleImpl(cfg, 77, tree, "//u/two", -1, -2, -3, -4, 0L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  10. cmd/encryption-v1_test.go

    			sum := int64(0)
    			for _, i := range oi.Parts {
    				sum += i.Size
    			}
    			return sum
    		}
    	)
    
    	s1 := []int64{5487701, 5487799, 3}
    	s2 := repeat(5487701, 5)
    	s3 := repeat(maxPartSz, 10000)
    	testMPs := []struct {
    		decSizes []int64
    		oi       ObjectInfo
    	}{
    		{s1, mkMPObj(s1)},
    		{s2, mkMPObj(s2)},
    		{s3, mkMPObj(s3)},
    	}
    
    	// This function is a reference (re-)implementation of
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 19.9K bytes
    - Viewed (0)
Back to top