Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 490 for HashCode (0.08 sec)

  1. 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)
  2. 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)
  3. 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)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/tls/BasicTrustRootIndex.kt

          }
        }
      }
    
      override fun equals(other: Any?): Boolean =
        other === this ||
          (other is BasicTrustRootIndex && other.subjectToCaCerts == subjectToCaCerts)
    
      override fun hashCode(): Int = subjectToCaCerts.hashCode()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CompoundOrdering.java

          CompoundOrdering<?> that = (CompoundOrdering<?>) object;
          return Arrays.equals(this.comparators, that.comparators);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return Arrays.hashCode(comparators);
      }
    
      @Override
      public String toString() {
        return "Ordering.compound(" + Arrays.toString(comparators) + ")";
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Present.java

        if (obj instanceof Present) {
          Present<?> other = (Present<?>) obj;
          return reference.equals(other.reference);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return 0x598df91c + reference.hashCode();
      }
    
      @Override
      public String toString() {
        return "Optional.of(" + reference + ")";
      }
    
      @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Apr 15 22:14:00 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. 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)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MediaType.kt

       * Content-Type header.
       */
      override fun toString(): String = mediaType
    
      override fun equals(other: Any?): Boolean = other is MediaType && other.mediaType == mediaType
    
      override fun hashCode(): Int = mediaType.hashCode()
    
      companion object {
        private const val TOKEN = "([a-zA-Z0-9-!#$%&'*+.^_`{|}~]+)"
        private const val QUOTED = "\"([^\"]*)\""
        private val TYPE_SUBTYPE = Regex("$TOKEN/$TOKEN")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 14:51:08 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/multichannel/ChannelInfoTest.java

        void testEquals() {
            ChannelInfo other = new ChannelInfo("test-channel", mockTransport, localInterface, remoteInterface);
            assertEquals(channelInfo, other);
            assertEquals(channelInfo.hashCode(), other.hashCode());
    
            ChannelInfo different = new ChannelInfo("different-channel", mockTransport, localInterface, remoteInterface);
            assertNotEquals(channelInfo, different);
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      /** Instantiable predicate with reasonable hashCode() and equals() methods. */
      static class IsOdd implements Predicate<@Nullable Integer>, Serializable {
        @GwtIncompatible @J2ktIncompatible     private static final long serialVersionUID = 0x150ddL;
    
        @Override
        public boolean apply(@Nullable Integer i) {
          return (i.intValue() & 1) == 1;
        }
    
        @Override
        public int hashCode() {
          return 0x150dd;
        }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 32.2K bytes
    - Viewed (0)
Back to top