Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1001 - 1010 of 1,801 for equals (0.08 seconds)

  1. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

     * Comparator} or {@link Comparable} type whose comparison behavior is <i>inconsistent with
     * equals</i>. That is, {@code a.compareTo(b)} or {@code comparator.compare(a, b)} should equal zero
     * <i>if and only if</i> {@code a.equals(b)}. If this advice is not followed, the resulting
     * collection will not correctly obey its specification.
     *
     * <p>See the Guava User Guide article on <a href=
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 36.8K bytes
    - Click Count (0)
  2. src/test/java/jcifs/smb/SmbResourceLocatorImplTest.java

            CIFSException ex = assertThrows(CIFSException.class, bad::getAddress);
            assertTrue(ex.getMessage().contains("Failed to lookup address"));
        }
    
        @Test
        @DisplayName("hashCode/equals based on address or server fallback")
        void testEqualsAndHashCode() throws Exception {
            UniAddress a = mock(UniAddress.class);
            when(nsc.getAllByName(eq("server"), anyBoolean())).thenReturn(new Address[] { a });
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableMap.java

                }
              };
            }
          };
        }
      }
    
      ImmutableCollection<V> createValues() {
        return new ImmutableMapValues<K, V>(this);
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        return Maps.equalsImpl(this, object);
      }
    
      @Override
      public int hashCode() {
        // not caching hash code since it could change if map values are mutable
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 15:51:42 GMT 2026
    - 17.2K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/ServerMessageBlock.java

        abstract int readBytesWireFormat(byte[] buffer, int bufferIndex);
    
        @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) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.7K bytes
    - Click Count (0)
  5. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/VersionRangeTest.java

            restrictions = version.getRestrictions();
            assertEquals(0, restrictions.size(), CHECK_NUM_RESTRICTIONS);
    
            assertFalse(
                    spec.equals(version),
                    "check !VersionRange.createFromVersionSpec(x).equals(VersionRange.createFromVersion(x))");
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 44.1K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Unit test for {@link TypeToken} and {@link TypeResolver}.
     *
     * @author Ben Yu
     */
    @AndroidIncompatible // lots of failures, possibly some related to bad equals() implementations?
    @NullUnmarked
    public class TypeTokenResolutionTest extends TestCase {
    
      private static class Foo<A, B> {
    
        Class<? super A> getClassA() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/reflect/TypeTokenResolutionTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Unit test for {@link TypeToken} and {@link TypeResolver}.
     *
     * @author Ben Yu
     */
    @AndroidIncompatible // lots of failures, possibly some related to bad equals() implementations?
    @NullUnmarked
    public class TypeTokenResolutionTest extends TestCase {
    
      private static class Foo<A, B> {
    
        Class<? super A> getClassA() {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 19.6K bytes
    - Click Count (0)
  8. docs/smb3-features/02-persistent-handles-design.md

            return bb.array();
        }
        
        @Override
        public String toString() {
            return guid.toString();
        }
        
        @Override
        public boolean equals(Object obj) {
            if (obj instanceof HandleGuid) {
                return guid.equals(((HandleGuid)obj).guid);
            }
            return false;
        }
        
        @Override
        public int hashCode() {
            return guid.hashCode();
        }
    }
    ```
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 31.6K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                boolQuery.should(query);
            }
            return boolQuery;
        }
    
        private QueryBuilder simpleQuery(String query, float titleBoost, float contentBoost) {
            if ("dismax".equals(ComponentUtil.getFessConfig().getQueryDefaultQueryType())) {
                return QueryBuilders.disMaxQuery()
                        .tieBreaker(0.1f)//
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 53.2K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractService.java

       * grab a lock.
       */
      // @Immutable except that Throwable is mutable (initCause(), setStackTrace(), mutable subclasses).
      private static final class StateSnapshot {
        /**
         * The internal state, which equals external state unless shutdownWhenStartupFinishes is true.
         */
        final State state;
    
        /** If true, the user requested a shutdown while the service was still starting up. */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Feb 19 21:24:11 GMT 2025
    - 20.3K bytes
    - Click Count (0)
Back to Top