Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 125 for obj (0.16 sec)

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

      /** Test proper handling of case where an object is not equal to itself */
      public void testNonReflexiveEquals() {
        Object obj = new NonReflexiveObject();
        equalsTester.addEqualityGroup(obj);
        try {
          equalsTester.testEquals();
        } catch (AssertionFailedError e) {
          assertErrorMessage(e, obj + " must be Object#equals to itself");
          return;
        }
        fail("Should get non-reflexive error");
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java

            UseIterable<? extends CharSequence> obj) {
          return isSubtype(obj);
        }
    
        @TestSubtype(suppressGetSupertype = true, suppressGetSubtype = true)
        public UseSerializableIterable<? extends Serializable>
            implicitTypeBoundIsSubtypeOfPartialExplicitTypeBound(UseSerializableIterable<?> obj) {
          return isSubtype(obj);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 20.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/Types.java

        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (NativeTypeVariableEquals.NATIVE_TYPE_VARIABLE_ONLY) {
            // equal only to our TypeVariable implementation with identical bounds
            if (obj != null
                && Proxy.isProxyClass(obj.getClass())
                && Proxy.getInvocationHandler(obj) instanceof TypeVariableInvocationHandler) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ListsImplTest.java

        int index = 0;
        for (Object obj : toTest) {
          String name = "toTest[" + index + "] (" + obj + ")";
          assertWithMessage(name).that(Lists.indexOfImpl(toTest, obj)).isEqualTo(expected[index]);
          index++;
        }
      }
    
      private void checkLastIndexOf(List<?> toTest, int[] expected) {
        int index = 0;
        for (Object obj : toTest) {
          String name = "toTest[" + index + "] (" + obj + ")";
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

          super(delegate);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof DelegatingInvocationHandlerWithEquals) {
            DelegatingInvocationHandlerWithEquals that = (DelegatingInvocationHandlerWithEquals) obj;
            return delegate.equals(that.delegate);
          } else {
            return false;
          }
        }
    
        @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

      private static class Collider {
        final int value;
    
        Collider(int value) {
          this.value = value;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof Collider && ((Collider) obj).value == value;
        }
    
        @Override
        public int hashCode() {
          return 1; // evil!
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

      private static class Collider {
        final int value;
    
        Collider(int value) {
          this.value = value;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof Collider && ((Collider) obj).value == value;
        }
    
        @Override
        public int hashCode() {
          return 1; // evil!
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/Suppliers.java

        @ParametricNullness
        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
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  9. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

            UnsignedLong ul,
            StringBuilder sb,
            Predicate<?> pred,
            Function<?, ?> func,
            Object obj) {
          delegate.foo(
              s, r, n, it, b, eq, e, in, c, ord, charset, unit, cls, joiner, pattern, ui, ul, sb, pred,
              func, obj);
        }
    
        @Override
        public String toString() {
          return delegate.toString();
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Collections2.java

          return new OrderedPermutationIterator<E>(inputList, comparator);
        }
    
        @Override
        public boolean contains(@CheckForNull Object obj) {
          if (obj instanceof List) {
            List<?> list = (List<?>) obj;
            return isPermutation(inputList, list);
          }
          return false;
        }
    
        @Override
        public String toString() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top