Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 1,228 for Equals (0.04 sec)

  1. compat/maven-compat/src/test/java/org/apache/maven/artifact/repository/MavenArtifactRepositoryTest.java

            assertTrue(r1.hashCode() == r2.hashCode());
            assertFalse(r1.hashCode() == r3.hashCode());
    
            assertTrue(r1.equals(r2));
            assertTrue(r2.equals(r1));
    
            assertFalse(r1.equals(r3));
            assertFalse(r3.equals(r1));
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java

        assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set);
        assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d"))));
        assertFalse(Sets.newTreeSet(asList("a", "b", "d")).equals(set));
        assertFalse(set.equals(newHashSet(4, 5, 6)));
        assertFalse(newHashSet(4, 5, 6).equals(set));
      }
    
      public void testEquals_bothExplicitOrdering() {
        SortedSet<String> set = of("in", "the", "a");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.7K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

         */
        @Override
        public boolean equals(final Object obj) {
            if (super.equals(obj)) {
                if (!(obj instanceof final NtlmPasswordAuthentication ntlm)) {
                    return !this.areHashesExternal();
                }
                if (this.areHashesExternal() && ntlm.areHashesExternal()) {
                    return Arrays.equals(this.ansiHash, ntlm.ansiHash) && Arrays.equals(this.unicodeHash, ntlm.unicodeHash);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/TestLockingTest.java

                for (int ai = 0; ai < args.length; ai++) {
                    if (args[ai].equals("-t")) {
                        ai++;
                        t.numThreads = Integer.parseInt(args[ai]);
                    } else if (args[ai].equals("-i")) {
                        ai++;
                        t.numIter = Integer.parseInt(args[ai]);
                    } else if (args[ai].equals("-d")) {
                        ai++;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              }
            }
          }
          return this;
        }
    
        /**
         * Tests {@link Object#equals} and {@link Object#hashCode} against the return values of the
         * static methods, by asserting that when equal parameters are passed to the same static method,
         * the return value should also be equal; and vice versa.
         *
         * <p>Test fails if default value cannot be determined for a constructor or factory method
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
  6. api/maven-api-model/src/main/java/org/apache/maven/api/model/InputSource.java

        }
    
        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            InputSource that = (InputSource) o;
            return Objects.equals(modelId, that.modelId)
                    && Objects.equals(location, that.location)
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Thu Apr 03 13:33:59 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeImpl.java

            int e = stackTrace.length;
    
            for (int i = s; i < e; i++) {
                final StackTraceElement se = stackTrace[i];
    
                if (i == s && SmbTreeImpl.class.getName().equals(se.getClassName()) && "close".equals(se.getMethodName())) {
                    s++;
                    continue;
                }
    
                if (se.getClassName().startsWith("org.junit.runners.")) {
                    e = i - 4;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30K bytes
    - Viewed (0)
  8. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/DebugResolutionListener.java

        }
    
        @Override
        public void omitForNearer(Artifact omitted, Artifact kept) {
            String omittedVersion = omitted.getVersion();
            String keptVersion = kept.getVersion();
    
            if (!Objects.equals(omittedVersion, keptVersion)) {
                logger.debug(indent + omitted + " (removed - nearer found: " + keptVersion + ")");
            }
        }
    
        @Override
        public void omitForCycle(Artifact omitted) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/IterablesTest.java

                    return s.equals("b") || s.equals("d") || s.equals("f");
                  }
                }));
        assertEquals(newArrayList("a", "c", "e"), list);
        assertFalse(
            removeIf(
                list,
                new Predicate<String>() {
                  @Override
                  public boolean apply(String s) {
                    return s.equals("x") || s.equals("y") || s.equals("z");
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 46.6K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/AbstractMapEntry.java

        throw new UnsupportedOperationException();
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        if (object instanceof Entry) {
          Entry<?, ?> that = (Entry<?, ?>) object;
          return Objects.equals(this.getKey(), that.getKey())
              && Objects.equals(this.getValue(), that.getValue());
        }
        return false;
      }
    
      @Override
      public int hashCode() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 1.9K bytes
    - Viewed (0)
Back to top