Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 554 for HashCode (0.12 sec)

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

                && entriesDiffering().equals(other.entriesDiffering());
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return Objects.hashCode(
              entriesOnlyOnLeft(), entriesOnlyOnRight(), entriesInCommon(), entriesDiffering());
        }
    
        @Override
        public String toString() {
          if (areEqual()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/testing/NullPointerTester.java

            Signature that = (Signature) obj;
            return name.equals(that.name) && parameterTypes.equals(that.parameterTypes);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return Objects.hashCode(name, parameterTypes);
        }
      }
    
      /**
       * Verifies that {@code invokable} produces a {@link NullPointerException} or {@link
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ContiguousSet.java

     * {@code ContiguousSet.create(Range.greaterThan(0), DiscreteDomain.integers()}). Certain operations
     * on such a set can be performed efficiently, but others (such as {@link Set#hashCode} or {@link
     * Collections#frequency}) can cause major performance problems.
     *
     * @author Gregory Kick
     * @since 10.0
     */
    @GwtCompatible(emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

        }
    
        private static class MyKey {
            Object _key;
    
            MyKey(Object key) {
                _key = key;
            }
    
            @Override
            public int hashCode() {
                return 0;
            }
    
            @Override
            public boolean equals(Object o) {
                if (o == this) {
                    return true;
                }
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/reflect/TypeResolver.java

        private final TypeVariable<?> var;
    
        TypeVariableKey(TypeVariable<?> var) {
          this.var = checkNotNull(var);
        }
    
        @Override
        public int hashCode() {
          return Objects.hashCode(var.getGenericDeclaration(), var.getName());
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof TypeVariableKey) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/Files.java

       * @return the {@link HashCode} of all of the bytes in the file
       * @throws IOException if an I/O error occurs
       * @since 12.0
       * @deprecated Prefer {@code asByteSource(file).hash(hashFunction)}.
       */
      @Deprecated
      @InlineMe(
          replacement = "Files.asByteSource(file).hash(hashFunction)",
          imports = "com.google.common.io.Files")
      public
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

        abstract int readParameterWordsWireFormat( byte[] buffer, int bufferIndex );
        abstract int readBytesWireFormat( byte[] buffer, int bufferIndex );
    
        public int hashCode() {
            return mid;
        }
        public boolean equals( Object obj ) {
            return obj instanceof ServerMessageBlock && ((ServerMessageBlock)obj).mid == mid;
        }
        public String toString() {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 21K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/CacheEvictionTest.java

        for (int i : keys) {
          cache.getUnchecked(i);
        }
      }
    
      private Object objectWithHash(final int hash) {
        return new Object() {
          @Override
          public int hashCode() {
            return hash;
          }
        };
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 19:07:49 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        assertTrue(multimap.entries().isEmpty());
        assertTrue(multimap.equals(ArrayListMultimap.create()));
        assertEquals(emptyList(), multimap.get("foo"));
        assertEquals(0, multimap.hashCode());
        assertTrue(multimap.isEmpty());
        assertEquals(HashMultiset.create(), multimap.keys());
        assertEquals(emptySet(), multimap.keySet());
        assertEquals(0, multimap.size());
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/base/Optional.java

       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this class leaves the specific choice of
       * hash code unspecified, unlike the Java 8+ equivalent.
       */
      @Override
      public abstract int hashCode();
    
      /**
       * Returns a string representation for this instance.
       *
       * <p><b>Comparison to {@code java.util.Optional}:</b> this class leaves the specific string
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top