Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,210 for equals (0.17 sec)

  1. android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java

          throws Throwable {
        if (args == null) {
          args = NO_ARGS;
        }
        if (args.length == 0 && method.getName().equals("hashCode")) {
          return hashCode();
        }
        if (args.length == 1
            && method.getName().equals("equals")
            && method.getParameterTypes()[0] == Object.class) {
          Object arg = args[0];
          if (arg == null) {
            return false;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 05 17:43:40 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. 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 Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  3. guava/src/com/google/common/base/Equivalence.java

      public static Equivalence<Object> identity() {
        return Identity.INSTANCE;
      }
    
      static final class Equals extends Equivalence<Object> implements Serializable {
    
        static final Equals INSTANCE = new Equals();
    
        @Override
        protected boolean doEquivalent(Object a, Object b) {
          return a.equals(b);
        }
    
        @Override
        protected int doHash(Object o) {
          return o.hashCode();
        }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Equivalence.java

      public static Equivalence<Object> identity() {
        return Identity.INSTANCE;
      }
    
      static final class Equals extends Equivalence<Object> implements Serializable {
    
        static final Equals INSTANCE = new Equals();
    
        @Override
        protected boolean doEquivalent(Object a, Object b) {
          return a.equals(b);
        }
    
        @Override
        protected int doHash(Object o) {
          return o.hashCode();
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Predicates.java

          return p.apply(f.apply(a));
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof CompositionPredicate) {
            CompositionPredicate<?, ?> that = (CompositionPredicate<?, ?>) obj;
            return f.equals(that.f) && p.equals(that.p);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/dict/synonym/SynonymItemTest.java

            final SynonymItem synonymItem1 = new SynonymItem(1, new String[] { "a" }, new String[] { "b" });
    
            assertTrue(synonymItem1.equals(synonymItem1));
            assertTrue(synonymItem1.equals(new SynonymItem(1, new String[] { "a" }, new String[] { "b" })));
            assertFalse(synonymItem1.equals(new SynonymItem(2, new String[] { "a" }, new String[] { "B", })));
    Java
    - Registered: Mon Apr 22 08:04:10 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ForwardingMapEntry.java

        return delegate().setValue(value);
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        return delegate().equals(object);
      }
    
      @Override
      public int hashCode() {
        return delegate().hashCode();
      }
    
      /**
       * A sensible definition of {@link #equals(Object)} in terms of {@link #getKey()} and {@link
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Mar 19 19:28:11 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/EqualsTester.java

          assertTrue(item + " must not be Object#equals to null", !item.equals(null));
          assertTrue(
              item + " must not be Object#equals to an arbitrary object of another class",
              !item.equals(NotAnInstance.EQUAL_TO_NOTHING));
          assertTrue(item + " must be Object#equals to itself", item.equals(item));
          assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

          assertTrue(item + " must not be Object#equals to null", !item.equals(null));
          assertTrue(
              item + " must not be Object#equals to an arbitrary object of another class",
              !item.equals(NotAnInstance.EQUAL_TO_NOTHING));
          assertTrue(item + " must be Object#equals to itself", item.equals(item));
          assertEquals(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/AbstractMapEntryTest.java

        // Explicitly call `equals`; `assertEquals` might return fast
        assertTrue(foo1.equals(foo1));
        assertEquals(control("foo", 1), foo1);
        assertEquals(control("bar", 2), entry("bar", 2));
        assertFalse(control("foo", 1).equals(entry("foo", 2)));
        assertFalse(foo1.equals(control("bar", 1)));
        assertFalse(foo1.equals(new Object()));
        assertFalse(foo1.equals(null));
      }
    
      public void testEqualsNull() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 3.1K bytes
    - Viewed (0)
Back to top