Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 507 for compare (0.06 sec)

  1. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            byte[] messageBytes = original.toByteArray();
    
            // When
            Type3Message parsed = new Type3Message(messageBytes);
    
            // Then
            // Note: getType() method does not exist, so we cannot compare message types
            assertEquals(original.getDomain(), parsed.getDomain());
            assertEquals(original.getUser(), parsed.getUser());
            assertEquals(original.getWorkstation(), parsed.getWorkstation());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

              castOrCopyToList(mapGenerator.order(castOrCopyToList(mapGenerator.getSampleElements(5))));
          sort(
              insertionOrder,
              new Comparator<V>() {
                @Override
                public int compare(V left, V right) {
                  // The indexes are small enough for the subtraction trick to be safe.
                  return indexOfEntryWithValue(left) - indexOfEntryWithValue(right);
                }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jan 30 16:59:10 UTC 2025
    - 18.2K bytes
    - Viewed (0)
  3. cmd/utils.go

    	// short-circuit single-element list
    	if len(strs) == 1 {
    		return xfix
    	}
    	// compare first to rest
    	for _, str := range strs[1:] {
    		xfixl := len(xfix)
    		strl := len(str)
    		// short-circuit empty strings
    		if xfixl == 0 || strl == 0 {
    			return ""
    		}
    		// maximum possible length
    		maxl := min(strl, xfixl)
    		// compare letters
    		if pre {
    			// prefix, iterate left to right
    			for i := range maxl {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 33K bytes
    - Viewed (0)
  4. guava/src/com/google/common/math/BigIntegerMath.java

              if (x.compareTo(halfPower) <= 0) {
                return logFloor;
              } else {
                return logFloor + 1;
              }
            }
            // Since sqrt(2) is irrational, log2(x) - logFloor cannot be exactly 0.5
            //
            // To determine which side of logFloor.5 the logarithm is,
            // we compare x^2 to 2^(2 * logFloor + 1).
            BigInteger x2 = x.pow(2);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/UniAddress.java

        }
    
        /**
         * Return the IP address of this address as a 32 bit integer.
         */
    
        @Override
        public int hashCode() {
            return addr.hashCode();
        }
    
        /**
         * Compare two addresses for equality. Two <code>UniAddress</code>s are equal
         * if they are both <code>UniAddress</code>' and refer to the same IP address.
         */
        @Override
        public boolean equals(final Object obj) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                if (fail1 == null) {
                    fail1 = 0;
                }
                if (fail2 == null) {
                    fail2 = 0;
                }
                return Integer.compare(fail1, fail2);
            });
    
            // Check for existing connections without global synchronization
            for (final Address addr : addrs) {
                final SmbTransportImpl found =
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/MultiChannelManager.java

                    return channels.get(index);
    
                case LEAST_CONNECTIONS:
                    return channels.stream()
                            .min((c1, c2) -> Integer.compare(c1.getActiveConnections(), c2.getActiveConnections()))
                            .orElse(channels.get(0));
    
                case RANDOM:
                    return channels.get((int) (Math.random() * channels.size()));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/bytes/buffer.go

    // included to match [bufio.Writer]'s WriteRune. The buffer is grown as needed;
    // if it becomes too large, WriteRune will panic with [ErrTooLarge].
    func (b *Buffer) WriteRune(r rune) (n int, err error) {
    	// Compare as uint32 to correctly handle negative runes.
    	if uint32(r) < utf8.RuneSelf {
    		b.WriteByte(byte(r))
    		return 1, nil
    	}
    	b.lastRead = opInvalid
    	m, ok := b.tryGrowByReslice(utf8.UTFMax)
    	if !ok {
    Registered: Tue Sep 09 11:13:09 UTC 2025
    - Last Modified: Mon May 19 17:38:56 UTC 2025
    - 16K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/smb2/lease/LeaseManager.java

                return;
            }
    
            // Find oldest leases by last access time
            leases.entrySet()
                    .stream()
                    .sorted((e1, e2) -> Long.compare(e1.getValue().getLastAccessTime(), e2.getValue().getLastAccessTime()))
                    .limit(count)
                    .forEach(entry -> {
                        Smb2LeaseKey key = entry.getKey();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        builder.put("bb", 3);
        builder.put("d", 2);
        builder.put("a", 5);
        builder.orderKeysBy(
            new Ordering<String>() {
              @Override
              public int compare(String left, String right) {
                return left.length() - right.length();
              }
            });
        builder.put("cc", 4);
        builder.put("a", 2);
        builder.put("bb", 6);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24K bytes
    - Viewed (0)
Back to top