Search Options

Results per page
Sort
Preferred Languages
Advance

Results 221 - 230 of 312 for obj (0.04 sec)

  1. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        private int value;
    
        @Override
        public Integer get() {
          return ++value;
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof CountingSupplier) {
            return this.value == ((CountingSupplier) obj).value;
          }
          return false;
        }
    
        @Override
        public int hashCode() {
          return value;
        }
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/TypeResolver.java

        public int hashCode() {
          return Objects.hash(var.getGenericDeclaration(), var.getName());
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof TypeVariableKey) {
            TypeVariableKey that = (TypeVariableKey) obj;
            return equalsTypeVariable(that.var);
          } else {
            return false;
          }
        }
    
        @Override
        public String toString() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/collect/testing/MapTestSuiteBuilderTests.java

                              return next.getKey();
                            }
    
                            @Override
                            public boolean equals(@Nullable Object obj) {
                              return next.equals(obj);
                            }
    
                            @Override
                            public int hashCode() {
                              return next.hashCode();
                            }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu May 22 16:18:11 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

        public boolean hasRestrictions() {
            return !restrictions.isEmpty() && recommendedVersion == null;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj instanceof VersionRange other) {
                return Objects.equals(recommendedVersion, other.recommendedVersion)
                        && Objects.equals(restrictions, other.restrictions);
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 19K bytes
    - Viewed (0)
  5. guava/src/com/google/common/base/Predicate.java

       * identically. However, as code migrates to {@code java.util.function}, that behavior will
       * disappear. It is best not to depend on it.
       */
      @Override
      boolean equals(@Nullable Object obj);
    
      @Override
      default boolean test(@ParametricNullness T input) {
        return apply(input);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 18 15:22:00 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  6. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

     *
     * <p><strong>This .java file should never be consumed by javac.</strong>
     *
     * @author Hayward Chan
     */
    final class Platform {
      // Class.cast is not supported in GWT.
      static void checkCast(Class<?> clazz, Object obj) {}
    
      static <T> T[] clone(T[] array) {
        return (T[]) Arrays.copyOfRange(array, 0, array.length);
      }
    
      // TODO: Consolidate different copies in one single place.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.1K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFileHandleImpl.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#equals(java.lang.Object)
         */
        @Override
        public boolean equals(final Object obj) {
            if (!(obj instanceof final SmbFileHandleImpl o)) {
                return false;
            }
            if (this.fileId != null) {
                return Arrays.equals(this.fileId, o.fileId) && this.tree_num == o.tree_num;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.4K bytes
    - Viewed (1)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

      override fun getProtocol(): String = throw UnsupportedOperationException()
    
      override fun getSessionContext(): SSLSessionContext = throw UnsupportedOperationException()
    
      override fun putValue(
        s: String,
        obj: Any,
      ): Unit = throw UnsupportedOperationException()
    
      override fun removeValue(s: String): Unit = throw UnsupportedOperationException()
    
      override fun getValue(s: String): Any = throw UnsupportedOperationException()
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/Invokable.java

      final boolean isTransient() {
        return Modifier.isTransient(getModifiers());
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        if (obj instanceof Invokable) {
          Invokable<?, ?> that = (Invokable<?, ?>) obj;
          return getOwnerType().equals(that.getOwnerType()) && member.equals(that.member);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 18.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

        @Override
        public int hashCode() {
            return mid;
        }
    
        @Override
        public boolean equals(final Object obj) {
            return obj instanceof ServerMessageBlock && ((ServerMessageBlock) obj).mid == mid;
        }
    
        @Override
        public String toString() {
            String c = switch (command) {
            case SMB_COM_NEGOTIATE -> "SMB_COM_NEGOTIATE";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.7K bytes
    - Viewed (0)
Back to top