Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,234 for objects (0.19 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);
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 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);
      }
    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)
  3. 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 Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 19:11:50 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/testing/EquivalenceTester.java

    import java.util.List;
    
    /**
     * Tester for {@link Equivalence} relationships between groups of objects.
     *
     * <p>To use, create a new {@link EquivalenceTester} and add equivalence groups where each group
     * contains objects that are supposed to be equal to each other. Objects of different groups are
     * expected to be unequal. For example:
     *
     * <pre>{@code
     * EquivalenceTester.of(someStringEquivalence)
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 4K bytes
    - Viewed (0)
  5. android/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 26 12:43:10 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.4K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/base/ObjectsBenchmark.java

          dummy += Objects.hashCode(S0, S1, S2, S3);
        }
        return dummy;
      }
    
      @Benchmark
      int hashString_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(S0, S1, S2, S3, S4);
        }
        return dummy;
      }
    
      @Benchmark
      int hashMixed_5(int reps) {
        int dummy = 0;
        for (int i = 0; i < reps; i++) {
          dummy += Objects.hashCode(I2, S1, D1, S2, I0);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.2K bytes
    - Viewed (0)
  7. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          return;
        }
        fail("Should get not equal to equal object error");
      }
    
      /**
       * Test for an invalid hashCode method, i.e., one that returns different value for objects that
       * are equal according to the equals method
       */
      public void testInvalidHashCode() {
        Object a = new InvalidHashCodeObject(1, 2);
        Object b = new InvalidHashCodeObject(1, 2);
        equalsTester.addEqualityGroup(a, b);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/GeneralRange.java

              && getUpperBoundType().equals(r.getUpperBoundType())
              && Objects.equal(getLowerEndpoint(), r.getLowerEndpoint())
              && Objects.equal(getUpperEndpoint(), r.getUpperEndpoint());
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        return Objects.hashCode(
            comparator,
            getLowerEndpoint(),
            getLowerBoundType(),
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

            V1 extends @Nullable Object,
            V2 extends @Nullable Object,
            V3 extends @Nullable Object,
            V4 extends @Nullable Object,
            V5 extends @Nullable Object,
            U extends @Nullable Object> {
          /**
           * Applies this function to five inputs, or throws an exception if unable to do so.
           *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/CompactHashing.java

        return (prefix & ~mask) | (suffix & mask);
      }
    
      static int remove(
          @CheckForNull Object key,
          @CheckForNull Object value,
          int mask,
          Object table,
          int[] entries,
          @Nullable Object[] keys,
          @CheckForNull @Nullable Object[] values) {
        int hash = Hashing.smearedHash(key);
        int tableIndex = hash & mask;
        int next = tableGet(table, tableIndex);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 02 21:41:22 GMT 2021
    - 7.1K bytes
    - Viewed (0)
Back to top