Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 921 for Equals (0.14 sec)

  1. guava-testlib/src/com/google/common/testing/RelationshipTester.java

       * identical inputs: This sounds like it ought to be a problem here, since the goals of this class
       * include testing that {@code equals()} is reflexive and is tolerant of {@code null}. However,
       * there's no problem. The reason: {@link EqualsTester} tests {@code null} and identical inputs
       * directly against {@code equals()} rather than through the {@code Equivalence}.
       */
      private final Equivalence<? super T> equivalence;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Apr 25 11:57:12 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FilesCreateTempDirTest.java

     */
    
    @SuppressWarnings("deprecation") // tests of a deprecated method
    public class FilesCreateTempDirTest extends TestCase {
      public void testCreateTempDir() throws IOException {
        if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
          assertThrows(IllegalStateException.class, Files::createTempDir);
          return;
        }
        File temp = Files.createTempDir();
        try {
          assertThat(temp.exists()).isTrue();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 06 17:11:11 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Suppliers.java

        public T get() {
          return function.apply(supplier.get());
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof SupplierComposition) {
            SupplierComposition<?, ?> that = (SupplierComposition<?, ?>) obj;
            return function.equals(that.function) && supplier.equals(that.supplier);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java

        @SuppressWarnings("unchecked")
        E e = (E) t;
        int unused = comparator().compare(e, e);
        return t;
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        return delegate.equals(obj);
      }
    
      @Override
      public int hashCode() {
        return delegate.hashCode();
      }
    
      @Override
      public String toString() {
        return delegate.toString();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

       * over keys in the order they were first encountered in the input, and the values for each key
       * are iterated in the order they were encountered. If two values for the same key are {@linkplain
       * Object#equals equal}, the first value encountered is used.
       *
       * @throws NullPointerException if any key, value, or entry is null
       * @since 19.0
       */
      public static <K, V> ImmutableSetMultimap<K, V> copyOf(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Multisets.java

      }
    
      /**
       * Implementation of the {@code equals}, {@code hashCode}, and {@code toString} methods of {@link
       * Multiset.Entry}.
       */
      abstract static class AbstractEntry<E extends @Nullable Object> implements Multiset.Entry<E> {
        /**
         * Indicates whether an object equals this entry, following the behavior specified in {@link
         * Multiset.Entry#equals}.
         */
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java

        }
      }
    
      /** A holder of counters for calls to hashCode, equals, and compareTo. */
      private static final class CallsCounter {
        long hashCode;
        long equals;
        long compareTo;
    
        long total() {
          return hashCode + equals + compareTo;
        }
    
        void zero() {
          hashCode = 0;
          equals = 0;
          compareTo = 0;
        }
      }
    
      @FunctionalInterface
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 03 21:01:39 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ImmutableListMultimapTest.java

        BiPredicate<ImmutableListMultimap<?, ?>, ImmutableListMultimap<?, ?>> equivalence =
            Equivalence.equals()
                .onResultOf((ImmutableListMultimap<?, ?> mm) -> mm.asMap().entrySet().asList())
                .and(Equivalence.equals());
        CollectorTester.of(collector, equivalence)
            .expectCollects(ImmutableListMultimap.of())
            .expectCollects(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

        @SuppressWarnings("EqualsHashCode")
        @Override
        public boolean equals(@Nullable Object other) {
          return (other instanceof ClassWhichIsAlwaysEqualButHasDifferentHashcodes);
        }
      }
    
      private static class ObjectWhichIsEqualButChangesClass implements Serializable {
        private static final long serialVersionUID = 1L;
    
        @Override
        public boolean equals(@Nullable Object other) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 4K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/CollectorTester.java

       * 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>
          CollectorTester<T, A, R> of(Collector<T, A, R> collector) {
        return of(collector, Objects::equals);
      }
    
      /**
       * Creates a {@code CollectorTester} for the specified {@code Collector}. The result of the {@code
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 6.5K bytes
    - Viewed (0)
Back to top