Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 105 for obj (0.11 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() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  2. android/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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 16:35:21 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. 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)
  4. guava/src/com/google/common/cache/CacheBuilderSpec.java

            durationInNanos(refreshDuration, refreshTimeUnit));
      }
    
      @Override
      public boolean equals(@CheckForNull Object obj) {
        if (this == obj) {
          return true;
        }
        if (!(obj instanceof CacheBuilderSpec)) {
          return false;
        }
        CacheBuilderSpec that = (CacheBuilderSpec) obj;
        return Objects.equal(initialCapacity, that.initialCapacity)
            && Objects.equal(maximumSize, that.maximumSize)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Aug 22 14:27:44 GMT 2022
    - 18.1K bytes
    - Viewed (0)
  5. 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)
  6. guava-tests/test/com/google/common/collect/FauxveridesTest.java

          typeSignature = new TypeSignature(method.getTypeParameters());
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof MethodSignature) {
            MethodSignature other = (MethodSignature) obj;
            return name.equals(other.name)
                && parameterTypes.equals(other.parameterTypes)
                && typeSignature.equals(other.typeSignature);
          }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/FauxveridesTest.java

          typeSignature = new TypeSignature(method.getTypeParameters());
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof MethodSignature) {
            MethodSignature other = (MethodSignature) obj;
            return name.equals(other.name)
                && parameterTypes.equals(other.parameterTypes)
                && typeSignature.equals(other.typeSignature);
          }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  8. 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 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/Cut.java

        return endpoint;
      }
    
      @SuppressWarnings("unchecked") // catching CCE
      @Override
      public boolean equals(@CheckForNull Object obj) {
        if (obj instanceof Cut) {
          // It might not really be a Cut<C>, but we'll catch a CCE if it's not
          Cut<C> that = (Cut<C>) obj;
          try {
            int compareResult = compareTo(that);
            return compareResult == 0;
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 12.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/base/Functions.java

        public C apply(@ParametricNullness A a) {
          return g.apply(f.apply(a));
        }
    
        @Override
        public boolean equals(@CheckForNull Object obj) {
          if (obj instanceof FunctionComposition) {
            FunctionComposition<?, ?, ?> that = (FunctionComposition<?, ?, ?>) obj;
            return f.equals(that.f) && g.equals(that.g);
          }
          return false;
        }
    
        @Override
        public int hashCode() {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.1K bytes
    - Viewed (0)
Back to top