Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 1,889 for instanceOf (0.04 sec)

  1. android/guava/src/com/google/common/base/PairwiseEquivalence.java

        for (T element : iterable) {
          hash = hash * 24943 + elementEquivalence.hash(element);
        }
        return hash;
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        if (obj instanceof PairwiseEquivalence) {
          @SuppressWarnings("unchecked")
          PairwiseEquivalence<Object, Object> that = (PairwiseEquivalence<Object, Object>) obj;
          return this.elementEquivalence.equals(that.elementEquivalence);
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/nego/EncryptionNegotiateContextTest.java

                assertTrue(context instanceof NegotiateContextRequest);
            }
    
            @Test
            @DisplayName("Should implement NegotiateContextResponse interface")
            void testImplementsNegotiateContextResponse() {
                EncryptionNegotiateContext context = new EncryptionNegotiateContext();
    
                assertTrue(context instanceof NegotiateContextResponse);
            }
    
            @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/Count.java

        value = newValue;
        return result;
      }
    
      @Override
      public int hashCode() {
        return value;
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        return obj instanceof Count && ((Count) obj).value == value;
      }
    
      @Override
      public String toString() {
        return Integer.toString(value);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/BaseComparable.java

      public int hashCode() { // delegate to 's'
        return s.hashCode();
      }
    
      @Override
      public boolean equals(@Nullable Object other) {
        if (other == null) {
          return false;
        } else if (other instanceof BaseComparable) {
          return s.equals(((BaseComparable) other).s);
        } else {
          return false;
        }
      }
    
      @Override
      public int compareTo(BaseComparable o) {
        return s.compareTo(o.s);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  5. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

        for (Constructor<X> constructor : preferringStringsThenThrowables(constructors)) {
          X instance = newFromConstructor(constructor, cause);
          if (instance != null) {
            if (instance.getCause() == null) {
              instance.initCause(cause);
            }
            return instance;
          }
        }
        throw new IllegalArgumentException(
            "No appropriate constructor for exception of type "
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableSetTest.java

        return ImmutableSet.copyOf(elements);
      }
    
      public void testCreation_allDuplicates() {
        ImmutableSet<String> set = ImmutableSet.copyOf(Lists.newArrayList("a", "a"));
        assertTrue(set instanceof SingletonImmutableSet);
        assertEquals(Lists.newArrayList("a"), new ArrayList<>(set));
      }
    
      public void testCreation_oneDuplicate() {
        // now we'll get the varargs overload
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/MIEName.java

        }
    
        /*
         * (non-Javadoc)
         *
         * @see java.lang.Object#equals(java.lang.Object)
         */
        @Override
        public boolean equals(final Object other) {
    
            if (other instanceof final MIEName terg) {
                if (Objects.equals(this.oid, terg.oid)
                        && (this.name == null && terg.name == null || this.name != null && this.name.equalsIgnoreCase(terg.name))) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/OrArtifactFilter.java

            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
            if (obj instanceof OrArtifactFilter other) {
                return filters.equals(other.filters);
            } else {
                return false;
            }
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  9. src/test/java/org/codelibs/fess/mylasta/action/FessUserBeanTest.java

        }
    
        public void test_serialization() {
            // Test that FessUserBean is serializable
            assertTrue(fessUserBean instanceof java.io.Serializable);
    
            // Test empty user bean is also serializable
            FessUserBean emptyBean = FessUserBean.empty();
            assertTrue(emptyBean instanceof java.io.Serializable);
        }
    
        // Test implementation of FessUser interface for testing
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 11.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/curl/CurlResponseTest.java

                assertTrue(e.getMessage().contains("Failed to access the content"));
                // The cause should be another CurlException from getContentAsStream()
                assertTrue(e.getCause() instanceof CurlException);
                CurlException innerException = (CurlException) e.getCause();
                assertTrue(innerException.getMessage().contains("The content does not exist"));
    Registered: Thu Sep 04 15:34:10 UTC 2025
    - Last Modified: Thu Jul 31 01:01:12 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top