Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 557 for hashCode (0.13 sec)

  1. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

        private ComparableVersion comparable;
    
        public DefaultArtifactVersion(String version) {
            parseVersion(version);
        }
    
        @Override
        public int hashCode() {
            return 11 + comparable.hashCode();
        }
    
        @Override
        public boolean equals(Object other) {
            if (this == other) {
                return true;
            }
    
            if (!(other instanceof ArtifactVersion)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6K bytes
    - Viewed (0)
  2. compat/maven-artifact/src/test/java/org/apache/maven/artifact/versioning/DefaultArtifactVersionTest.java

        @Test
        void testHashCode() {
            ArtifactVersion v1 = newArtifactVersion("1");
            ArtifactVersion v2 = newArtifactVersion("1.0");
            assertTrue(v1.equals(v2));
            assertEquals(v1.hashCode(), v2.hashCode());
        }
    
        @Test
        void testEqualsNullSafe() {
            assertFalse(newArtifactVersion("1").equals(null));
        }
    
        @Test
        void testEqualsTypeSafe() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/UniAddress.java

            }
            this.addr = addr;
        }
    
        /**
         * Return the IP address of this address as a 32 bit integer.
         */
    
        public int hashCode() {
            return addr.hashCode();
        }
    
        /**
         * Compare two addresses for equality. Two <tt>UniAddress</tt>s are equal
         * if they are both <tt>UniAddress</tt>' and refer to the same IP address.
         */
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 16.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DirFileEntryEnumIteratorBase.java

            return this.parent;
        }
    
    
        private final boolean filter ( FileEntry fe ) {
            String name = fe.getName();
            if ( name.length() < 3 ) {
                int h = name.hashCode();
                if ( h == SmbFile.HASH_DOT || h == SmbFile.HASH_DOT_DOT ) {
                    if ( name.equals(".") || name.equals("..") )
                        return false;
                }
            }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 5.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/eventbus/Subscriber.java

      private SubscriberExceptionContext context(Object event) {
        return new SubscriberExceptionContext(bus, event, target, method);
      }
    
      @Override
      public final int hashCode() {
        return (31 + method.hashCode()) * 31 + System.identityHashCode(target);
      }
    
      @Override
      public final boolean equals(@CheckForNull Object obj) {
        if (obj instanceof Subscriber) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 06 00:47:57 UTC 2021
    - 4.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            }
            return false;
          }
    
          @Override
          public int hashCode() {
            K k = getKey();
            V v = getValue();
            return ((k == null) ? 0 : k.hashCode()) ^ ((v == null) ? 0 : v.hashCode());
          }
    
          @Override
          public String toString() {
            return getKey() + "=" + getValue();
          }
        };
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/Bytes.java

      /**
       * Returns a hash code for {@code value}; equal to the result of invoking {@code ((Byte)
       * value).hashCode()}.
       *
       * <p><b>Java 8+ users:</b> use {@link Byte#hashCode(byte)} instead.
       *
       * @param value a primitive {@code byte} value
       * @return a hash code for the value
       */
      public static int hashCode(byte value) {
        return value;
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/SafeTreeMap.java

        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();
      }
    
      private static final long serialVersionUID = 0L;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 20 17:00:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java

          return standardToString();
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
          return standardEquals(object);
        }
    
        @Override
        public int hashCode() {
          return standardHashCode();
        }
    
        @Override
        public boolean setCount(T element, int oldCount, int newCount) {
          return standardSetCount(element, oldCount, newCount);
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/ByteSourceTester.java

    import static org.junit.Assert.assertArrayEquals;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Optional;
    import com.google.common.collect.ImmutableList;
    import com.google.common.hash.HashCode;
    import com.google.common.hash.Hashing;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 8.6K bytes
    - Viewed (0)
Back to top