Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 557 for hashCode (0.07 sec)

  1. guava/src/com/google/common/util/concurrent/Striped.java

       * java.util.HashMap class.
       */
      // Copied from java/com/google/common/collect/Hashing.java
      private static int smear(int hashCode) {
        hashCode ^= (hashCode >>> 20) ^ (hashCode >>> 12);
        return hashCode ^ (hashCode >>> 7) ^ (hashCode >>> 4);
      }
    
      private static class PaddedLock extends ReentrantLock {
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jun 26 12:58:35 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ForwardingList.java

      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        return object == this || delegate().equals(object);
      }
    
      @Override
      public int hashCode() {
        return delegate().hashCode();
      }
    
      /**
       * A sensible default implementation of {@link #add(Object)}, in terms of {@link #add(int,
       * Object)}. If you override {@link #add(int, Object)}, you may wish to override {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 15:26:39 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Apr 20 11:19:03 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/AbstractVersionTest.java

                assertEquals(v1, v2, "expected " + v1 + " == " + v2);
                assertEquals(v2, v1, "expected " + v2 + " == " + v1);
                assertEquals(v1.hashCode(), v2.hashCode(), "expected #(" + v1 + ") == #(" + v1 + ")");
            }
        }
    
        protected void assertSequence(String... versions) {
            for (int i = 0; i < versions.length - 1; i++) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/Name.java

            return srcIndex - start;
        }
    
    
        @Override
        public int hashCode () {
            int result;
    
            result = this.name.hashCode();
            result += 65599 * this.hexCode;
            result += 65599 * this.srcHashCode; /*
                                                 * hashCode is different depending
                                                 * on where it came from
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 7.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ComparatorOrdering.java

          ComparatorOrdering<?> that = (ComparatorOrdering<?>) object;
          return this.comparator.equals(that.comparator);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return comparator.hashCode();
      }
    
      @Override
      public String toString() {
        return comparator.toString();
      }
    
      private static final long serialVersionUID = 0;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sun Jun 20 14:22:42 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/hash/Hashing.java

        for (HashCode hashCode : hashCodes) {
          byte[] nextBytes = hashCode.asBytes();
          checkArgument(
              nextBytes.length == resultBytes.length, "All hashcodes must have the same bit length.");
          for (int i = 0; i < nextBytes.length; i++) {
            resultBytes[i] = (byte) (resultBytes[i] * 37 ^ nextBytes[i]);
          }
        }
        return HashCode.fromBytesNoCopy(resultBytes);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jul 19 16:02:36 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ExclusionSetFilter.java

                return false;
            }
    
            id = artifact.getGroupId() + ':' + id;
    
            return !excludes.contains(id);
        }
    
        @Override
        public int hashCode() {
            int hash = 17;
            hash = hash * 31 + excludes.hashCode();
            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/FunctionalEquivalence.java

          return function.equals(that.function) && resultEquivalence.equals(that.resultEquivalence);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return Objects.hashCode(function, resultEquivalence);
      }
    
      @Override
      public String toString() {
        return resultEquivalence + ".onResultOf(" + function + ")";
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon May 01 19:48:29 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/util/IgnoreCloseInputStream.java

            return inputStream.available();
        }
    
        @Override
        public boolean equals(final Object obj) {
            return inputStream.equals(obj);
        }
    
        @Override
        public int hashCode() {
            return inputStream.hashCode();
        }
    
        @Override
        public synchronized void mark(final int readlimit) {
            inputStream.mark(readlimit);
        }
    
        @Override
        public boolean markSupported() {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 2.3K bytes
    - Viewed (0)
Back to top