Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 435 for Equals (0.42 sec)

  1. android/guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

              e,
              equalObject1
                  + " [group 1, item 1] must be Object#equals to "
                  + notEqualObject1
                  + " [group 1, item 2]");
          return;
        }
        fail("Should get not equal to equal object error");
      }
    
      /**
       * Test EqualsTester with no equals or not equals objects. This checks proper handling of null,
       * incompatible class and reflexive tests
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        }
      }
    
      private interface Equals {
        @Override
        boolean equals(@Nullable Object obj);
    
        @Override
        int hashCode();
    
        @Override
        String toString();
      }
    
      private static class NoDelegateToEquals implements Equals {
    
        private static Function<Equals, Equals> WRAPPER =
            new Function<Equals, Equals>() {
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/Types.java

        }
    
        @Override
        public boolean equals(@CheckForNull Object other) {
          if (!(other instanceof ParameterizedType)) {
            return false;
          }
          ParameterizedType that = (ParameterizedType) other;
          return getRawType().equals(that.getRawType())
              && Objects.equal(getOwnerType(), that.getOwnerType())
              && Arrays.equals(getActualTypeArguments(), that.getActualTypeArguments());
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                  @Override
                  public int hashCode() {
                    return map.hashCode();
                  }
    
                  @Override
                  public boolean equals(@Nullable Object o) {
                    return map.equals(o);
                  }
    
                  @Override
                  public String toString() {
                    return map.toString();
                  }
    
                  @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                  @Override
                  public int hashCode() {
                    return map.hashCode();
                  }
    
                  @Override
                  public boolean equals(@Nullable Object o) {
                    return map.equals(o);
                  }
    
                  @Override
                  public String toString() {
                    return map.toString();
                  }
    
                  @Override
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 11.9K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

        } catch (UnsupportedOperationException e) {
          return;
        }
    
        // Explicitly call `equals`; `assertEquals` might return fast
        assertTrue(map.equals(map));
        assertTrue(makePopulatedMap().equals(map));
        assertFalse(map.equals(Collections.emptyMap()));
        // no-inspection ObjectEqualsNull
        assertFalse(map.equals(null));
      }
    
      public void testEqualsForLargerMap() {
        if (!supportsPut) {
          return;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 45.9K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        public V getValue() {
          return value;
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
          // Cannot use key and value equivalence
          if (object instanceof Entry) {
            Entry<?, ?> that = (Entry<?, ?>) object;
            return key.equals(that.getKey()) && value.equals(that.getValue());
          }
          return false;
        }
    
        @Override
        public int hashCode() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

          return parent.subArray(fromIndex, toIndex).asList();
        }
    
        @Override
        public boolean equals(@CheckForNull Object object) {
          if (object instanceof AsList) {
            AsList that = (AsList) object;
            return this.parent.equals(that.parent);
          }
          // We could delegate to super now but it would still box too much
          if (!(object instanceof List)) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          for (BigInteger q : NONZERO_BIGINTEGER_CANDIDATES) {
            if (isAndroid && p.equals(BAD_FOR_ANDROID_P) && q.equals(BAD_FOR_ANDROID_Q)) {
              // https://code.google.com/p/android/issues/detail?id=196555
              continue;
            }
            if (isAndroid && p.equals(BAD_FOR_GINGERBREAD_P) && q.equals(BAD_FOR_GINGERBREAD_Q)) {
              // Works fine under Marshmallow, so I haven't filed a bug.
              continue;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          for (BigInteger q : NONZERO_BIGINTEGER_CANDIDATES) {
            if (isAndroid && p.equals(BAD_FOR_ANDROID_P) && q.equals(BAD_FOR_ANDROID_Q)) {
              // https://code.google.com/p/android/issues/detail?id=196555
              continue;
            }
            if (isAndroid && p.equals(BAD_FOR_GINGERBREAD_P) && q.equals(BAD_FOR_GINGERBREAD_Q)) {
              // Works fine under Marshmallow, so I haven't filed a bug.
              continue;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.2K bytes
    - Viewed (0)
Back to top