Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 401 for objects (0.4 sec)

  1. android/guava/src/com/google/common/base/Objects.java

       *
       * <p><b>Java 7+ users:</b> This method should be treated as deprecated; use {@link
       * java.util.Objects#hash} instead.
       */
      public static int hashCode(@CheckForNull @Nullable Object... objects) {
        return Arrays.hashCode(objects);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/base/Objects.java

       *
       * <p><b>Java 7+ users:</b> This method should be treated as deprecated; use {@link
       * java.util.Objects#hash} instead.
       */
      public static int hashCode(@CheckForNull @Nullable Object... objects) {
        return Arrays.hashCode(objects);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

     *   <li>comparing each object against an instance of an incompatible class returns false
     *   <li>comparing each pair of objects within the same equality group returns true
     *   <li>comparing each pair of objects from different equality groups returns false
     *   <li>the hash codes of any two equal objects are equal
     * </ul>
     *
     * <p>When a test fails, the error message labels the objects involved in the failed comparison as
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ForwardingMapEntry.java

       */
      protected boolean standardEquals(@CheckForNull Object object) {
        if (object instanceof Entry) {
          Entry<?, ?> that = (Entry<?, ?>) object;
          return Objects.equal(this.getKey(), that.getKey())
              && Objects.equal(this.getValue(), that.getValue());
        }
        return false;
      }
    
      /**
       * A sensible definition of {@link #hashCode()} in terms of {@link #getKey()} and {@link
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Mar 19 19:28:11 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Function.java

       *   <li>The computation is <i>consistent with equals</i>; that is, {@link Objects#equal
       *       Objects.equal}{@code (a, b)} implies that {@code Objects.equal(function.apply(a),
       *       function.apply(b))}.
       * </ul>
       *
       * @throws NullPointerException if {@code input} is null and this function does not accept null
       *     arguments
       */
      @ParametricNullness
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Predicate.java

      boolean apply(@ParametricNullness T input);
    
      /**
       * Indicates whether another object is equal to this predicate.
       *
       * <p>Most implementations will have no reason to override the behavior of {@link Object#equals}.
       * However, an implementation may also choose to return {@code true} whenever {@code object} is a
       * {@link Predicate} that it considers <i>interchangeable</i> with this one. "Interchangeable"
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

     */
    
    package com.google.common.collect;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.collect.RegularImmutableMap.makeImmutable;
    import static java.util.Objects.requireNonNull;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import java.util.HashMap;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/testing/CollectorTester.java

    public final class CollectorTester<
        T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object> {
      /**
       * Creates a {@code CollectorTester} for the specified {@code Collector}. The result of the {@code
       * Collector} will be compared to the expected value using {@link Object#equals}.
       */
      public static <T extends @Nullable Object, A extends @Nullable Object, R extends @Nullable Object>
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/RegularImmutableMultiset.java

    @ElementTypesAreNonnullByDefault
    class RegularImmutableMultiset<E> extends ImmutableMultiset<E> {
      private static final ImmutableEntry<?>[] EMPTY_ARRAY = new ImmutableEntry<?>[0];
      static final ImmutableMultiset<Object> EMPTY = create(ImmutableList.<Entry<Object>>of());
    
      static <E> ImmutableMultiset<E> create(Collection<? extends Entry<? extends E>> entries) {
        int distinct = entries.size();
        @SuppressWarnings({"unchecked", "rawtypes"})
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/ListHashCodeTester.java

            expectedHashCode,
            getList().hashCode());
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testHashCode()} so that list tests on
       * unhashable objects can suppress it with {@code FeatureSpecificTestSuiteBuilder.suppressing()}.
       */
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public static Method getHashCodeMethod() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 1.9K bytes
    - Viewed (0)
Back to top