Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for obj (0.17 sec)

  1. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        private final AnInterface i;
    
        public HasAnInterface(AnInterface i) {
          this.i = i;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof HasAnInterface) {
            HasAnInterface that = (HasAnInterface) obj;
            return i.equals(that.i);
          } else {
            return false;
          }
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      }
    
      /** Unboxes {@code obj}. Assumes that obj is not {@code null} or a {@link SetFuture}. */
      @ParametricNullness
      private V getDoneValue(Object obj) throws ExecutionException {
        // While this seems like it might be too branch-y, simple benchmarking proves it to be
        // unmeasurable (comparing done AbstractFutures with immediateFuture)
        if (obj instanceof Cancellation) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 63.1K bytes
    - Viewed (0)
  3. guava/src/com/google/common/util/concurrent/AbstractFuture.java

      }
    
      /** Unboxes {@code obj}. Assumes that obj is not {@code null} or a {@link SetFuture}. */
      @ParametricNullness
      private V getDoneValue(Object obj) throws ExecutionException {
        // While this seems like it might be too branch-y, simple benchmarking proves it to be
        // unmeasurable (comparing done AbstractFutures with immediateFuture)
        if (obj instanceof Cancellation) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 62.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Tables.java

        // needed for serialization
        AbstractCell() {}
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj == this) {
            return true;
          }
          if (obj instanceof Cell) {
            Cell<?, ?, ?> other = (Cell<?, ?, ?>) obj;
            return Objects.equal(getRowKey(), other.getRowKey())
                && Objects.equal(getColumnKey(), other.getColumnKey())
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 26.3K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            }
            return lhs.compareTo(justAfterNull);
          }
          return lhs.compareTo(rhs);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof NullsBefore) {
            NullsBefore other = (NullsBefore) obj;
            return justAfterNull.equals(other.justAfterNull);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Equivalence.java

         * equivalence.
         */
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj == this) {
            return true;
          }
          if (obj instanceof Wrapper) {
            Wrapper<?> that = (Wrapper<?>) obj; // note: not necessarily a Wrapper<T>
    
            if (this.equivalence.equals(that.equivalence)) {
              /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

          }
    
          @Override
          public int hashCode() {
            return a;
          }
    
          @Override
          public boolean equals(@Nullable Object obj) {
            return obj instanceof TypeWithDuplicates && ((TypeWithDuplicates) obj).a == a;
          }
    
          public boolean fullEquals(@Nullable TypeWithDuplicates other) {
            return other != null && a == other.a && b == other.b;
          }
        }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 25K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java

     *
     *   {@literal @Override} public boolean equals(Object obj) {...}
     *   {@literal @Override} public int hashCode() {...}
     *   ...
     * }
     * </pre>
     *
     * <p>No cascading checks are performed against the return values of methods unless the method is a
     * static factory method. Neither are semantics of mutation methods such as {@code
     * someList.add(obj)} checked. For more detailed discussion of supported and unsupported cases, see
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

          this.name = name;
          this.parameterTypes = parameterTypes;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof Signature) {
            Signature that = (Signature) obj;
            return name.equals(that.name) && parameterTypes.equals(that.parameterTypes);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 22.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/Sets.java

        public boolean contains(@CheckForNull Object obj) {
          if (obj instanceof Set) {
            Set<?> set = (Set<?>) obj;
            return inputSet.keySet().containsAll(set);
          }
          return false;
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof PowerSet) {
            PowerSet<?> that = (PowerSet<?>) obj;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 77.3K bytes
    - Viewed (0)
Back to top