Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 717 for objects (5.22 sec)

  1. 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);
      }
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. 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);
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  3. 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
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Mar 19 19:28:11 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/HashBiMap.java

    @ElementTypesAreNonnullByDefault
    public final class HashBiMap<K extends @Nullable Object, V extends @Nullable Object>
        extends IteratorBasedAbstractMap<K, V> implements BiMap<K, V>, Serializable {
    
      /** Returns a new, empty {@code HashBiMap} with the default initial capacity (16). */
      public static <K extends @Nullable Object, V extends @Nullable Object> HashBiMap<K, V> create() {
        return create(16);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/base/ObjectsTest.java

        assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, 2));
        assertTrue(Objects.hashCode(1, 2, null) != Objects.hashCode(1, null, 2));
        assertTrue(Objects.hashCode(1, null, 2) != Objects.hashCode(1, 2));
        assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(3, 2, 1));
        assertTrue(Objects.hashCode(1, 2, 3) != Objects.hashCode(2, 3, 1));
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 18:32:41 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  6. 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"
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/MoreObjects.java

    /**
     * Helper functions that operate on any {@code Object}, and are not already provided in {@link
     * java.util.Objects}.
     *
     * <p>See the Guava User Guide on <a
     * href="https://github.com/google/guava/wiki/CommonObjectUtilitiesExplained">writing {@code Object}
     * methods with {@code MoreObjects}</a>.
     *
     * @author Laurence Gonsalves
     * @since 18.0 (since 2.0 as {@code Objects})
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java

      }
    
      private static <E extends @Nullable Object> void assertCollectionsAreEquivalent(
          Collection<E> expected, Collection<E> actual) {
        assertIteratorsInOrder(expected.iterator(), actual.iterator());
      }
    
      private static <K extends @Nullable Object, V extends @Nullable Object>
          void assertMultimapRemainsUnmodified(Multimap<K, V> expected, List<Entry<K, V>> actual) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/SingletonImmutableTableTest.java

    package com.google.common.collect;
    
    import static com.google.common.truth.Truth.assertThat;
    
    import com.google.common.annotations.GwtCompatible;
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.base.Objects;
    import com.google.common.testing.EqualsTester;
    
    /**
     * Tests {@link SingletonImmutableTable}.
     *
     * @author Gregory Kick
     */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4K bytes
    - Viewed (0)
  10. 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
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
Back to top