Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 392 for hashCode (0.05 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

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

                ContiguousSet.closedOpen(Integer.MIN_VALUE, Integer.MIN_VALUE),
                ImmutableSortedSet.of(),
                ImmutableSet.of())
            .testEquals();
        // not testing hashCode for these because it takes forever to compute
        assertEquals(
            ContiguousSet.closed(Integer.MIN_VALUE, Integer.MAX_VALUE),
            ContiguousSet.create(Range.<Integer>all(), integers()));
        assertEquals(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 19.6K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseId.java

                        && Objects.equals(phase(), phaseId.phase())
                        && Objects.equals(priority(), phaseId.priority());
            }
        }
    
        @Override
        public int hashCode() {
            return Objects.hash(executionPoint(), phase(), priority());
        }
    
        @Override
        public String toString() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 25 12:31:46 GMT 2024
    - 4.3K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/EmptyContiguousSet.java

          return that.isEmpty();
        }
        return false;
      }
    
      @GwtIncompatible // not used in GWT
      @Override
      boolean isHashCodeFast() {
        return true;
      }
    
      @Override
      public int hashCode() {
        return 0;
      }
    
      @GwtIncompatible
      @J2ktIncompatible
      private static final class SerializedForm<C extends Comparable> implements Serializable {
        private final DiscreteDomain<C> domain;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof Collider && ((Collider) obj).value == value;
        }
    
        @Override
        public int hashCode() {
          return 1; // evil!
        }
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 4.2K bytes
    - Click Count (0)
  5. guava/src/com/google/common/collect/Multiset.java

         * <p>The hash code of a multiset entry for element {@code element} and count {@code count} is
         * defined as:
         *
         * {@snippet :
         * ((element == null) ? 0 : element.hashCode()) ^ count
         * }
         */
        @Override
        int hashCode();
    
        /**
         * Returns the canonical string representation of this entry, defined as follows. If the count
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Jul 08 18:32:10 GMT 2025
    - 20.9K bytes
    - Click Count (0)
  6. android/guava-tests/benchmark/com/google/common/base/ToStringHelperBenchmark.java

        for (int i = 0; i < reps; i++) {
          MoreObjects.ToStringHelper helper = newHelper();
          for (int j = 0; j < dataSize; ++j) {
            dataset.addEntries(helper);
          }
          dummy ^= helper.toString().hashCode();
        }
        return dummy;
      }
    
      // When omitEmptyValues() is released, remove this method and add a new @Param "omitEmptyValues".
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 4.4K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/collect/InternersTest.java

        assertSame(not, pool.intern(not));
      }
    
      private static final class MyInt {
        private final int i;
    
        MyInt(int i) {
          this.i = i;
        }
    
        @Override
        public int hashCode() {
          return i;
        }
    
        @Override
        public boolean equals(Object o) {
          return o instanceof MyInt && ((MyInt) o).i == i;
        }
      }
    
      public void testAsFunction_simplistic() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Dec 08 17:02:07 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactFactoryRequest.java

                            && Objects.equals(extension, that.extension)
                            && Objects.equals(type, that.type);
                }
    
                @Override
                public int hashCode() {
                    return Objects.hash(groupId, artifactId, version, classifier, extension, type);
                }
    
                @Override
                public String toString() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 7.3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/primitives/BytesTest.java

      // We need to test that our method behaves like the JDK method.
      @SuppressWarnings("InlineMeInliner")
      public void testHashCode() {
        for (byte value : VALUES) {
          assertThat(Bytes.hashCode(value)).isEqualTo(Byte.hashCode(value));
        }
      }
    
      public void testContains() {
        assertThat(Bytes.contains(EMPTY, (byte) 1)).isFalse();
        assertThat(Bytes.contains(ARRAY1, (byte) 2)).isFalse();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 17.5K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/collect/Multimaps.java

          return map.entrySet().iterator();
        }
    
        @Override
        Map<K, Collection<V>> createAsMap() {
          return new AsMap<>(this);
        }
    
        @Override
        public int hashCode() {
          return map.hashCode();
        }
    
        @GwtIncompatible @J2ktIncompatible     private static final long serialVersionUID = 7845222491160860175L;
      }
    
      /**
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 86.5K bytes
    - Click Count (0)
Back to Top