Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 493 for hashCode (0.07 sec)

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

          RangeSet<?> other = (RangeSet<?>) obj;
          return this.asRanges().equals(other.asRanges());
        }
        return false;
      }
    
      @Override
      public final int hashCode() {
        return asRanges().hashCode();
      }
    
      @Override
      public final String toString() {
        return asRanges().toString();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/ComparableVersion.java

                }
    
                BigIntegerItem that = (BigIntegerItem) o;
    
                return value.equals(that.value);
            }
    
            @Override
            public int hashCode() {
                return value.hashCode();
            }
    
            @Override
            public String toString() {
                return value.toString();
            }
        }
    
        /**
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/UniAddress.java

            }
            this.addr = addr;
        }
    
        /**
         * Return the IP address of this address as a 32 bit integer.
         */
    
        @Override
        public int hashCode() {
            return addr.hashCode();
        }
    
        /**
         * Compare two addresses for equality. Two <code>UniAddress</code>s are equal
         * if they are both <code>UniAddress</code>' and refer to the same IP address.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 17K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

    public class BaseComparable implements Comparable<BaseComparable>, Serializable {
      private final String s;
    
      public BaseComparable(String s) {
        this.s = s;
      }
    
      @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 BaseComparable) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/Base.java

    @GwtCompatible
    @NullUnmarked
    class Base implements Comparable<Base>, Serializable {
      private final String s;
    
      public Base(String s) {
        this.s = s;
      }
    
      @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) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Booleans.java

      /**
       * Returns a hash code for {@code value}; obsolete alternative to {@link
       * Boolean#hashCode(boolean)}.
       *
       * @param value a primitive {@code boolean} value
       * @return a hash code for the value
       */
      @InlineMe(replacement = "Boolean.hashCode(value)")
      public static int hashCode(boolean value) {
        return Boolean.hashCode(value);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/Booleans.java

      /**
       * Returns a hash code for {@code value}; obsolete alternative to {@link
       * Boolean#hashCode(boolean)}.
       *
       * @param value a primitive {@code boolean} value
       * @return a hash code for the value
       */
      @InlineMe(replacement = "Boolean.hashCode(value)")
      public static int hashCode(boolean value) {
        return Boolean.hashCode(value);
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/UnhashableObject.java

          UnhashableObject that = (UnhashableObject) object;
          return this.value == that.value;
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        throw new UnsupportedOperationException();
      }
    
      // needed because otherwise Object.toString() calls hashCode()
      @Override
      public String toString() {
        return "DontHashMe" + value;
      }
    
      @Override
      public int compareTo(UnhashableObject o) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Apr 10 20:12:40 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/netbios/Name.java

            this.scope = sb.toString();
    
            return srcIndex - start;
        }
    
        @Override
        public int hashCode() {
            int result = this.name.hashCode();
            result += 65599 * this.hexCode;
            result += 65599 * this.srcHashCode; /*
                                                 * hashCode is different depending
                                                 * on where it came from
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java

            int expectedHash =
                (entry.getKey() == null ? 0 : entry.getKey().hashCode())
                    ^ (entry.getValue() == null ? 0 : entry.getValue().hashCode());
            assertEquals(expectedHash, entry.hashCode());
            expectedEntrySetHash += expectedHash;
          }
          assertEquals(expectedEntrySetHash, entrySet.hashCode());
          assertTrue(entrySet.containsAll(new HashSet<Entry<K, V>>(entrySet)));
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 43.9K bytes
    - Viewed (0)
Back to top