Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 12 for areEqual (0.06 seconds)

  1. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
            }
            boolean areEqual = true;
            for (int i = 0; i < a.length; i++) {
              areEqual &= a[i] == b[i];
            }
            return areEqual;
          }
        },
        XORING_TO_BYTE {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 4K bytes
    - Click Count (0)
  2. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
              return false;
            }
            boolean areEqual = true;
            for (int i = 0; i < a.length; i++) {
              areEqual &= a[i] == b[i];
            }
            return areEqual;
          }
        },
        XORING_TO_BYTE {
          @Override
          boolean doEquals(byte[] a, byte[] b) {
            if (a.length != b.length) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 4K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

        if (this.length() != that.length()) {
          return false;
        }
        for (int i = 0; i < length(); i++) {
          if (!areEqual(this.get(i), that.get(i))) {
            return false;
          }
        }
        return true;
      }
    
      // Match the behavior of Double.equals()
      private static boolean areEqual(double a, double b) {
        return Double.doubleToLongBits(a) == Double.doubleToLongBits(b);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 22.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/hash/HashCode.java

          if (this.bytes.length != that.getBytesInternal().length) {
            return false;
          }
    
          boolean areEqual = true;
          for (int i = 0; i < this.bytes.length; i++) {
            areEqual &= this.bytes[i] == that.getBytesInternal()[i];
          }
          return areEqual;
        }
    
        private static final long serialVersionUID = 0;
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 12.6K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

      private static final Map<Integer, Integer> SINGLETON = singletonMap(1, 2);
    
      public void testMapDifferenceEmptyEmpty() {
        MapDifference<Integer, Integer> diff = Maps.difference(EMPTY, EMPTY);
        assertTrue(diff.areEqual());
        assertEquals(EMPTY, diff.entriesOnlyOnLeft());
        assertEquals(EMPTY, diff.entriesOnlyOnRight());
        assertEquals(EMPTY, diff.entriesInCommon());
        assertEquals(EMPTY, diff.entriesDiffering());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 63.2K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/MapDifference.java

    public interface MapDifference<K extends @Nullable Object, V extends @Nullable Object> {
      /**
       * Returns {@code true} if there are no differences between the two maps; that is, if the maps are
       * equal.
       */
      boolean areEqual();
    
      /**
       * Returns an unmodifiable map containing the entries from the left map whose keys are not present
       * in the right map.
       */
      Map<K, V> entriesOnlyOnLeft();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertTrue(ArbitraryInstances.get(ImmutableSetMultimap.class).isEmpty());
        assertTrue(ArbitraryInstances.get(MapDifference.class).areEqual());
        assertTrue(ArbitraryInstances.get(SortedMapDifference.class).areEqual());
        assertEquals(Range.all(), ArbitraryInstances.get(Range.class));
        assertTrue(ArbitraryInstances.get(NavigableSet.class).isEmpty());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/collect/MapDifference.java

    public interface MapDifference<K extends @Nullable Object, V extends @Nullable Object> {
      /**
       * Returns {@code true} if there are no differences between the two maps; that is, if the maps are
       * equal.
       */
      boolean areEqual();
    
      /**
       * Returns an unmodifiable map containing the entries from the left map whose keys are not present
       * in the right map.
       */
      Map<K, V> entriesOnlyOnLeft();
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 17 20:26:29 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  9. android/guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        assertTrue(ArbitraryInstances.get(ImmutableSetMultimap.class).isEmpty());
        assertTrue(ArbitraryInstances.get(MapDifference.class).areEqual());
        assertTrue(ArbitraryInstances.get(SortedMapDifference.class).areEqual());
        assertEquals(Range.all(), ArbitraryInstances.get(Range.class));
        assertTrue(ArbitraryInstances.get(NavigableSet.class).isEmpty());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.4K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Maps.java

          this.onlyOnRight = unmodifiableMap(onlyOnRight);
          this.onBoth = unmodifiableMap(onBoth);
          this.differences = unmodifiableMap(differences);
        }
    
        @Override
        public boolean areEqual() {
          return onlyOnLeft.isEmpty() && onlyOnRight.isEmpty() && differences.isEmpty();
        }
    
        @Override
        public Map<K, V> entriesOnlyOnLeft() {
          return onlyOnLeft;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
Back to Top