Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 559 for hashcode (0.09 sec)

  1. guava/src/com/google/common/collect/ForwardingObject.java

     * href="http://en.wikipedia.org/wiki/Decorator_pattern">decorator pattern</a>. The {@link
     * #delegate()} method must be overridden to return the instance being decorated.
     *
     * <p>This class does <i>not</i> forward the {@code hashCode} and {@code equals} methods through to
     * the backing object, but relies on {@code Object}'s implementation. This is necessary to preserve
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 29 19:42:21 UTC 2021
    - 3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Converter.java

            return this.first.equals(that.first) && this.second.equals(that.second);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return 31 * first.hashCode() + second.hashCode();
        }
    
        @Override
        public String toString() {
          return first + ".andThen(" + second + ")";
        }
    
        private static final long serialVersionUID = 0L;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23K bytes
    - Viewed (0)
  3. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

            assertEquals(0, c1.compareTo(c2), "expected " + v1 + " == " + v2);
            assertEquals(0, c2.compareTo(c1), "expected " + v2 + " == " + v1);
            assertEquals(c1.hashCode(), c2.hashCode(), "expected same hashcode for " + v1 + " and " + v2);
            assertEquals(c1, c2, "expected " + v1 + ".equals( " + v2 + " )");
            assertEquals(c2, c1, "expected " + v2 + ".equals( " + v1 + " )");
        }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 14K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return this == obj || (obj instanceof Element && ((Element) obj).hash == hash);
        }
    
        @Override
        public int hashCode() {
          return hash;
        }
    
        @Override
        public int compareTo(Element that) {
          return Integer.compare(hash, that.hash);
        }
    
        @Override
        public String toString() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/model/MethodMetaData.java

                Objects.equals(parameters, that.parameters) &&
                Objects.equals(returnType, that.returnType);
        }
    
        @Override
        public int hashCode() {
            return Objects.hash(super.hashCode(), name, ownerClass, parameters, returnType);
        }
    
        public ClassMetaData getOwnerClass() {
            return ownerClass;
        }
    
        public TypeMetaData getReturnType() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 4.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

            }
          }
          return true;
        }
    
        // Because we happen to use the same formula. If that changes, just don't override this.
        @Override
        public int hashCode() {
          return parent.hashCode();
        }
    
        @Override
        public String toString() {
          return parent.toString();
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/ImmutableIntArray.java

            }
          }
          return true;
        }
    
        // Because we happen to use the same formula. If that changes, just don't override this.
        @Override
        public int hashCode() {
          return parent.hashCode();
        }
    
        @Override
        public String toString() {
          return parent.toString();
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/Lists.java

      /** An implementation of {@link List#hashCode()}. */
      static int hashCodeImpl(List<?> list) {
        // TODO(lowasser): worth optimizing for RandomAccess?
        int hashCode = 1;
        for (Object o : list) {
          hashCode = 31 * hashCode + (o == null ? 0 : o.hashCode());
    
          hashCode = ~~hashCode;
          // needed to deal with GWT integer overflow
        }
        return hashCode;
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TreeRangeMap.java

            RangeMap<?, ?> rangeMap = (RangeMap<?, ?>) o;
            return asMapOfRanges().equals(rangeMap.asMapOfRanges());
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return asMapOfRanges().hashCode();
        }
    
        @Override
        public String toString() {
          return asMapOfRanges().toString();
        }
    
        class SubRangeMapAsMap extends AbstractMap<Range<K>, V> {
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/collect/SynchronizedTableTest.java

        @Override
        public boolean equals(@Nullable Object o) {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.equals(o);
        }
    
        @Override
        public int hashCode() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.hashCode();
        }
    
        @Override
        public int size() {
          assertTrue(Thread.holdsLock(mutex));
          return delegate.size();
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 06 17:23:04 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top