Search Options

Results per page
Sort
Preferred Languages
Advance

Results 271 - 280 of 557 for hashCode (0.06 sec)

  1. android/guava/src/com/google/common/collect/Synchronized.java

          if (o == this) {
            return true;
          }
          synchronized (mutex) {
            return delegate().equals(o);
          }
        }
    
        @Override
        public int hashCode() {
          synchronized (mutex) {
            return delegate().hashCode();
          }
        }
    
        private static final long serialVersionUID = 0;
      }
    
      private static <E extends @Nullable Object> SortedSet<E> sortedSet(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 53.4K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/Synchronized.java

          if (o == this) {
            return true;
          }
          synchronized (mutex) {
            return delegate().equals(o);
          }
        }
    
        @Override
        public int hashCode() {
          synchronized (mutex) {
            return delegate().hashCode();
          }
        }
    
        private static final long serialVersionUID = 0;
      }
    
      private static <E extends @Nullable Object> SortedSet<E> sortedSet(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 57.2K bytes
    - Viewed (0)
  3. 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 {
        private static final long serialVersionUID = 0x150ddL;
    
        @Override
        public boolean apply(@Nullable Integer i) {
          return (i.intValue() & 1) == 1;
        }
    
        @Override
        public int hashCode() {
          return 0x150dd;
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  4. 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".
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 10 19:21:11 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java

        return delegate.size();
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        return delegate.equals(object);
      }
    
      @Override
      public int hashCode() {
        return delegate.hashCode();
      }
    
      @Override
      public String toString() {
        return delegate.toString();
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Jan 24 16:03:45 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/hash/AbstractByteHasherTest.java

        byte[] bytes() {
          return out.toByteArray();
        }
    
        void assertBytes(byte[] expected) {
          assertArrayEquals(expected, bytes());
        }
    
        @Override
        public HashCode hash() {
          return HashCode.fromBytesNoCopy(bytes());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  7. guava/src/com/google/common/hash/MacHashFunction.java

        }
    
        private void checkNotDone() {
          checkState(!done, "Cannot re-use a Hasher after calling hash() on it");
        }
    
        @Override
        public HashCode hash() {
          checkNotDone();
          done = true;
          return HashCode.fromBytesNoCopy(mac.doFinal());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 15 22:31:55 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Booleans.java

       * Returns a hash code for {@code value}; equal to the result of invoking {@code ((Boolean)
       * value).hashCode()}.
       *
       * <p><b>Java 8+ users:</b> use {@link Boolean#hashCode(boolean)} instead.
       *
       * @param value a primitive {@code boolean} value
       * @return a hash code for the value
       */
      public static int hashCode(boolean value) {
        return value ? 1231 : 1237;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/primitives/Booleans.java

       * Returns a hash code for {@code value}; equal to the result of invoking {@code ((Boolean)
       * value).hashCode()}.
       *
       * <p><b>Java 8+ users:</b> use {@link Boolean#hashCode(boolean)} instead.
       *
       * @param value a primitive {@code boolean} value
       * @return a hash code for the value
       */
      public static int hashCode(boolean value) {
        return value ? 1231 : 1237;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbFileHandleImpl.java

                this.attrs,
                this.options);
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#hashCode()
         */
        @Override
        public int hashCode () {
            if ( this.fileId != null ) {
                return (int) ( Arrays.hashCode(this.fileId) + 3 * this.tree_num );
            }
            return (int) ( this.fid + 3 * this.tree_num );
        }
    
    
        /**
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 8.6K bytes
    - Viewed (1)
Back to top