Search Options

Results per page
Sort
Preferred Languages
Advance

Results 401 - 410 of 559 for hashcode (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/MediaType.kt

       * Content-Type header.
       */
      override fun toString(): String = commonToString()
    
      override fun equals(other: Any?): Boolean = commonEquals(other)
    
      override fun hashCode(): Int = commonHashCode()
    
      companion object {
        /**
         * Returns a media type for this string.
         *
         * @throws IllegalArgumentException if this is not a well-formed media type.
         */
        @JvmStatic
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ForwardingSortedSetTest.java

          return backingSortedSet;
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
          return standardEquals(object);
        }
    
        @Override
        public int hashCode() {
          return standardHashCode();
        }
    
        @Override
        public boolean addAll(Collection<? extends T> collection) {
          return standardAddAll(collection);
        }
    
        @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/primitives/BytesTest.java

      private static final byte[] VALUES = {Byte.MIN_VALUE, -1, 0, 1, Byte.MAX_VALUE};
    
      public void testHashCode() {
        for (byte value : VALUES) {
          assertThat(Bytes.hashCode(value)).isEqualTo(((Byte) value).hashCode());
        }
      }
    
      public void testContains() {
        assertThat(Bytes.contains(EMPTY, (byte) 1)).isFalse();
        assertThat(Bytes.contains(ARRAY1, (byte) 2)).isFalse();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/TimeLimiter.java

       * target} object, enforcing the specified time limit on each call. This time-limited delegation
       * is also performed for calls to {@link Object#equals}, {@link Object#hashCode}, and {@link
       * Object#toString}.
       *
       * <p>If the target method call finishes before the limit is reached, the return value or
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 18:32:03 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

        verify(hasher).putBytes(buf, 0, 3);
        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testHash_hashesCorrectly() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashCode expectedHash = Hashing.md5().hashBytes(buf);
        HashingOutputStream out = new HashingOutputStream(Hashing.md5(), buffer);
    
        out.write(buf);
    
        assertEquals(expectedHash, out.hash());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 11 22:00:03 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/NaturalOrdering.java

      }
    
      @Override
      public <S extends Comparable<?>> Ordering<S> reverse() {
        return (Ordering<S>) ReverseNaturalOrdering.INSTANCE;
      }
    
      // preserving singleton-ness gives equals()/hashCode() for free
      private Object readResolve() {
        return INSTANCE;
      }
    
      @Override
      public String toString() {
        return "Ordering.natural()";
      }
    
      private NaturalOrdering() {}
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:02:13 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/PathScope.java

     * {@link #TEST_COMPILE} and {@link #TEST_RUNTIME}, but can be extended by registering a
     * {@code org.apache.maven.api.spi.PathScopeProvider}.
     * <p>
     * Implementation must have {@code equals()} and {@code hashCode()} implemented, so implementations of this interface
     * can be used as keys.
     *
     * @since 4.0.0
     * @see org.apache.maven.api.services.DependencyResolver
     * @see DependencyScope
     */
    @Experimental
    @Immutable
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Wed Jul 10 20:52:34 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  8. guava/src/com/google/common/primitives/Chars.java

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

       * including the floating point values. See the note on {@link #equals} for details.
       */
      @Override
      public int hashCode() {
        return Objects.hashCode(xStats, yStats, sumOfProductsOfDeltas);
      }
    
      @Override
      public String toString() {
        if (count() > 0) {
          return MoreObjects.toStringHelper(this)
              .add("xStats", xStats)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 12.6K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/opensearch/extension/analysis/NGramSynonymTokenizer.java

                }
                if (posInc != o.posInc) {
                    return false;
                }
                return true;
            }
    
            @Override
            public int hashCode() {
                return word.hashCode() + posInc << 30 + startOffset << 15 + endOffset;
            }
        }
    
        /*
         * static class SynInfo { final String src; final int offset, length; final String[] synonyms; Mode mode; int count;
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 17K bytes
    - Viewed (0)
Back to top