Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 667 for Equals (0.16 sec)

  1. android/guava-tests/test/com/google/common/collect/Base.java

      }
    
      @Override
      public int hashCode() { // delegate to 's'
        return s.hashCode();
      }
    
      @Override
      public boolean equals(@Nullable Object other) {
        if (other == null) {
          return false;
        } else if (other instanceof Base) {
          return s.equals(((Base) other).s);
        } else {
          return false;
        }
      }
    
      @Override
      public int compareTo(Base o) {
        return s.compareTo(o.s);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 03 22:29:45 GMT 2023
    - 1.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java

      @MapFeature.Require(SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testSetValue_valueAbsent() {
        for (Entry<K, V> entry : getMap().entrySet()) {
          if (entry.getKey().equals(k0())) {
            assertEquals("entry.setValue() should return the old value", v0(), entry.setValue(v3()));
          }
        }
        expectReplacement(entry(k0(), v3()));
      }
    
      @MapFeature.Require(SUPPORTS_PUT)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 09 20:10:38 GMT 2018
    - 2.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

          super(delegate);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof DelegatingInvocationHandlerWithEquals) {
            DelegatingInvocationHandlerWithEquals that = (DelegatingInvocationHandlerWithEquals) obj;
            return delegate.equals(that.delegate);
          } else {
            return false;
          }
        }
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ForwardingObjectTest.java

        ForwardingObject forward =
            new ForwardingObject() {
              @Override
              protected Object delegate() {
                return delegate;
              }
            };
        assertEquals(forward.equals(delegate), delegate.equals(forward));
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 1.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ForwardingList.java

      }
    
      @Override
      public List<E> subList(int fromIndex, int toIndex) {
        return delegate().subList(fromIndex, toIndex);
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        return object == this || delegate().equals(object);
      }
    
      @Override
      public int hashCode() {
        return delegate().hashCode();
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 12 15:26:39 GMT 2023
    - 7.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/SortedMultiset.java

     * 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
     * {@link Comparable} class specification. Otherwise, the resulting multiset will violate the {@link
     * Collection} contract, which is specified in terms of {@link Object#equals}.
     *
     * <p>See the Guava User Guide article on <a href=
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ExplicitOrdering.java

          throw new IncomparableValueException(value);
        }
        return rank;
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        if (object instanceof ExplicitOrdering) {
          ExplicitOrdering<?> that = (ExplicitOrdering<?>) object;
          return this.rankMap.equals(that.rankMap);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return rankMap.hashCode();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 2K bytes
    - Viewed (0)
  8. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/graph/EndpointPair.java

            // We already know that nodeU equals other.nodeU. Combined with the earlier statement,
            // and the transitive property of equality, this implies that nodeU equals nodeV.
            // If nodeU equals nodeV, condition1 == condition2, so checking condition1 is sufficient.
            return nodeV().equals(other.nodeV());
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 01 17:18:04 GMT 2021
    - 8.1K bytes
    - Viewed (0)
  10. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 19 19:28:11 GMT 2024
    - 4.4K bytes
    - Viewed (0)
Back to top