Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 557 for hashCode (0.05 sec)

  1. compat/maven-builder-support/src/main/java/org/apache/maven/building/UrlSource.java

        private final URL url;
    
        private final int hashCode;
    
        /**
         * Creates a new source backed by the specified URL.
         *
         * @param url The file, must not be {@code null}.
         */
        public UrlSource(URL url) {
            this.url = Objects.requireNonNull(url, "url cannot be null");
            this.hashCode = Objects.hashCode(url);
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/AbstractInvocationHandler.java

        return super.equals(obj);
      }
    
      /**
       * By default delegates to {@link Object#hashCode}. The dynamic proxies' {@code hashCode()} will
       * delegate to this method. Subclasses can override this method to provide custom equality.
       */
      @Override
      public int hashCode() {
        return super.hashCode();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 05 17:43:40 UTC 2022
    - 5.2K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

        assertEquals(
            "multiset.entrySet() has incorrect hash code", 0, getMultiset().entrySet().hashCode());
      }
    
      @CollectionSize.Require(ONE)
      public void testEntrySet_hashCode_size1() {
        assertEquals(
            "multiset.entrySet() has incorrect hash code",
            1 ^ e0().hashCode(),
            getMultiset().entrySet().hashCode());
      }
    
      public void testEquals_yes() {
        assertTrue(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/google/MultisetReadsTester.java

        assertEquals(
            "multiset.entrySet() has incorrect hash code", 0, getMultiset().entrySet().hashCode());
      }
    
      @CollectionSize.Require(ONE)
      public void testEntrySet_hashCode_size1() {
        assertEquals(
            "multiset.entrySet() has incorrect hash code",
            1 ^ e0().hashCode(),
            getMultiset().entrySet().hashCode());
      }
    
      public void testEquals_yes() {
        assertTrue(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Objects.java

       * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a
       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
       * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/RegularImmutableBiMap.java

        int hashCode = 0;
    
        for (int i = 0; i < n; i++) {
          // requireNonNull is safe because the first `n` elements have been filled in.
          Entry<K, V> entry = requireNonNull(entryArray[i]);
          K key = entry.getKey();
          V value = entry.getValue();
          checkEntryNotNull(key, value);
          int keyHash = key.hashCode();
          int valueHash = value.hashCode();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.3K bytes
    - Viewed (0)
  7. android/guava-testlib/src/com/google/common/collect/testing/testers/MapHashCodeTester.java

        assertEquals(
            "A Map's hashCode() should be the sum of those of its entries (where "
                + "a null element in an entry counts as having a hash of zero).",
            expectedHashCode,
            getMap().hashCode());
      }
    
      private static int hash(Entry<?, ?> e) {
        return (e.getKey() == null ? 0 : e.getKey().hashCode())
            ^ (e.getValue() == null ? 0 : e.getValue().hashCode());
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jul 24 20:12:35 UTC 2024
    - 3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java

        sink.putByte((byte) 7);
        sink.putBytes(new byte[] {});
        sink.putBytes(new byte[] {8});
        HashCode unused = sink.hash();
        sink.assertInvariants(8);
        sink.assertBytes(expected);
      }
    
      public void testShort() {
        Sink sink = new Sink(4);
        sink.putShort((short) 0x0201);
        HashCode unused = sink.hash();
        sink.assertInvariants(2);
        sink.assertBytes(new byte[] {1, 2, 0, 0}); // padded with zeros
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  9. compat/maven-builder-support/src/main/java/org/apache/maven/building/StringSource.java

        public StringSource(CharSequence content, String location) {
            this.content = (content != null) ? content.toString() : "";
            this.location = (location != null) ? location : "(memory)";
            this.hashCode = this.content.hashCode();
        }
    
        @Override
        public InputStream getInputStream() throws IOException {
            return new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8));
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ArtifactModelSource.java

            this.version = version;
            this.hashCode = Objects.hash(groupId, artifactId, version);
        }
    
        public String getGroupId() {
            return groupId;
        }
    
        public String getArtifactId() {
            return artifactId;
        }
    
        public String getVersion() {
            return version;
        }
    
        @Override
        public int hashCode() {
            return hashCode;
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top