Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 91 - 100 of 528 for compares (0.1 seconds)

  1. android/guava/src/com/google/common/collect/TreeMultiset.java

    /**
     * A multiset which maintains the ordering of its elements, according to either their natural order
     * or an explicit {@link Comparator}. In all cases, this implementation uses {@link
     * Comparable#compareTo} or {@link Comparator#compare} instead of {@link Object#equals} to determine
     * equivalence of instances.
     *
     * <p><b>Warning:</b> The comparison must be <i>consistent with equals</i> as explained by the
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 09 15:58:48 GMT 2025
    - 33.9K bytes
    - Click Count (0)
  2. docs/pt/docs/advanced/security/http-basic-auth.md

    #### Corrija com o `secrets.compare_digest()` { #fix-it-with-secrets-compare-digest }
    
    Mas em nosso código já estamos utilizando o `secrets.compare_digest()`.
    
    Resumindo, levará o mesmo tempo para comparar `stanleyjobsox` com `stanleyjobson` do que comparar `johndoe` com `stanleyjobson`. E o mesmo para a senha.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Nov 12 16:23:57 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  3. tests/count_test.go

    		t.Fatalf("Build count with select, but got %v", result.Statement.SQL.String())
    	}
    
    	var count4 int64
    	if err := DB.Table("users").Joins("LEFT JOIN companies on companies.name = users.name").Where("users.name = ?", user1.Name).Count(&count4).Error; err != nil || count4 != 1 {
    		t.Errorf("count with join, got error: %v, count %v", err, count4)
    	}
    
    	var count5 int64
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Sep 08 09:19:22 GMT 2025
    - 6.8K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java

      }
    
      // needed because otherwise Object.toString() calls hashCode()
      @Override
      public String toString() {
        return "DontHashMe" + value;
      }
    
      @Override
      public int compareTo(UnhashableObject o) {
        return Integer.compare(this.value, o.value);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Apr 10 20:12:40 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/UsingToStringOrdering.java

    @GwtCompatible
    final class UsingToStringOrdering extends Ordering<Object> implements Serializable {
      static final UsingToStringOrdering INSTANCE = new UsingToStringOrdering();
    
      @Override
      public int compare(Object left, Object right) {
        return left.toString().compareTo(right.toString());
      }
    
      // preserve singleton-ness, so equals() and hashCode() work correctly
      private Object readResolve() {
        return INSTANCE;
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 1.5K bytes
    - Click Count (0)
  6. .github/workflows/mint/minio-compress-encrypt.yaml

    Harshavardhana <******@****.***> 1699046298 -0700
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Nov 03 21:18:18 GMT 2023
    - 1.7K bytes
    - Click Count (0)
  7. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     *     seqNum = seq.getAndIncrement();
     *     this.entry = entry;
     *   }
     *
     *   public E getEntry() {
     *     return entry;
     *   }
     *
     *   public int compareTo(FIFOEntry<E> other) {
     *     int res = entry.compareTo(other.entry);
     *     if (res == 0 && other.entry != this.entry) {
     *       res = (seqNum < other.seqNum ? -1 : 1);
     *     }
     *     return res;
     *   }
     * }
     * }</pre>
     *
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue May 13 18:46:00 GMT 2025
    - 18.9K bytes
    - Click Count (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/SortedMapNavigationTester.java

                @Override
                public int compare(K o1, K o2) {
                  return ((Comparable) o1).compareTo(o2);
                }
              };
        }
        Iterator<Entry<K, V>> entryItr = navigableMap.entrySet().iterator();
        Entry<K, V> prevEntry = entryItr.next();
        while (entryItr.hasNext()) {
          Entry<K, V> nextEntry = entryItr.next();
          assertTrue(comparator.compare(prevEntry.getKey(), nextEntry.getKey()) < 0);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 20:54:16 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Cut.java

      @Override
      public int compareTo(Cut<C> that) {
        if (that == belowAll()) {
          return 1;
        }
        if (that == aboveAll()) {
          return -1;
        }
        int result = Range.compareOrThrow(endpoint, that.endpoint);
        if (result != 0) {
          return result;
        }
        // same value. below comes before above
        return Boolean.compare(this instanceof AboveValue, that instanceof AboveValue);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 12.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/ReverseNaturalOrdering.java

      @Override
      @SuppressWarnings("unchecked") // TODO(kevinb): the right way to explain this??
      public int compare(Comparable<?> left, Comparable<?> right) {
        checkNotNull(left); // right null is caught later
        if (left == right) {
          return 0;
        }
    
        return ((Comparable<Object>) right).compareTo(left);
      }
    
      @Override
      public <S extends Comparable<?>> Ordering<S> reverse() {
        return Ordering.natural();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Jun 04 13:03:16 GMT 2025
    - 3K bytes
    - Click Count (0)
Back to Top