Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 182 for special (0.19 sec)

  1. android/guava-tests/test/com/google/common/io/FilesTest.java

        assertEquals(asciiFile.length(), temp.length());
        assertFalse(Files.equal(asciiFile, temp));
    
        assertTrue(Files.asByteSource(asciiFile).contentEquals(Files.asByteSource(asciiFile)));
    
        // 0-length files have special treatment (/proc, etc.)
        assertTrue(Files.equal(asciiFile, new BadLengthFile(asciiFile, 0)));
      }
    
      public void testNewReader() throws IOException {
        File asciiFile = getTestFile("ascii.txt");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 22.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Objects.java

       * Generates a hash code for multiple values. The hash code is generated by calling {@link
       * Arrays#hashCode(Object[])}. Note that array arguments to this method, with the exception of a
       * single Object array, do not get any special handling; their hash codes are based on identity
       * and not contents.
       *
       * <p>This is useful for implementing {@link Object#hashCode()}. For example, in an object that
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/net/HttpHeadersTest.java

    /**
     * Tests for the HttpHeaders class.
     *
     * @author Kurt Alfred Kluever
     */
    public class HttpHeadersTest extends TestCase {
    
      public void testConstantNameMatchesString() throws Exception {
        // Special case some of the weird HTTP Header names...
        ImmutableBiMap<String, String> specialCases =
            ImmutableBiMap.<String, String>builder()
                .put("CDN_LOOP", "CDN-Loop")
                .put("ETAG", "ETag")
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Jan 17 17:41:51 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

    /**
     * Tests for the HttpHeaders class.
     *
     * @author Kurt Alfred Kluever
     */
    public class HttpHeadersTest extends TestCase {
    
      public void testConstantNameMatchesString() throws Exception {
        // Special case some of the weird HTTP Header names...
        ImmutableBiMap<String, String> specialCases =
            ImmutableBiMap.<String, String>builder()
                .put("CDN_LOOP", "CDN-Loop")
                .put("ETAG", "ETag")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 22 21:08:08 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/EvictingQueue.java

         * we can override it in our non-null-guaranteeing subtypes to present a better signature to
         * their users.
         *
         * However, the checker *we* use has this special knowledge about `Collection.toArray()` anyway,
         * so in our implementation code, we can rely on that. That's why the expression below
         * type-checks.
         */
        return super.toArray();
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri May 12 17:52:55 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/ImmutableSet.java

       * each appears first in the source iterator.
       *
       * @throws NullPointerException if any of {@code elements} is null
       */
      public static <E> ImmutableSet<E> copyOf(Iterator<? extends E> elements) {
        // We special-case for 0 or 1 elements, but anything further is madness.
        if (!elements.hasNext()) {
          return of();
        }
        E first = elements.next();
        if (!elements.hasNext()) {
          return of(first);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 35.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/net/InetAddresses.java

       * @since 7.0
       */
      public static Inet4Address getCoercedIPv4Address(InetAddress ip) {
        if (ip instanceof Inet4Address) {
          return (Inet4Address) ip;
        }
    
        // Special cases:
        byte[] bytes = ip.getAddress();
        boolean leadingBytesOfZero = true;
        for (int i = 0; i < 15; ++i) {
          if (bytes[i] != 0) {
            leadingBytesOfZero = false;
            break;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/base/StandardSystemProperty.java

       *       available even under older version.
       *   <li>Any property may be cleared through APIs like {@link System#clearProperty}.
       *   <li>Unusual environments like GWT may have their own special handling of system properties.
       * </ul>
       *
       * <p>Note that {@code StandardSystemProperty} does not provide constants for more recently added
       * properties, including:
       *
       * <ul>
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 23 15:09:35 GMT 2023
    - 5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/escape/ArrayBasedCharEscaper.java

     * escaped in a general way.
     *
     * <p>A good example of usage of this class is for Java source code escaping where the replacement
     * array contains information about special ASCII characters such as {@code \\t} and {@code \\n}
     * while {@link #escapeUnsafe} is overridden to handle general escaping of the form {@code \\uxxxx}.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 18 20:55:09 GMT 2022
    - 6.3K bytes
    - Viewed (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableSet.java

    /**
     * GWT implementation of {@link ImmutableSet} that forwards to another {@code Set} implementation.
     *
     * @author Hayward Chan
     */
    @ElementTypesAreNonnullByDefault
    @SuppressWarnings("serial") // Serialization only done in GWT.
    public abstract class ForwardingImmutableSet<E> extends ImmutableSet<E> {
      private final transient Set<E> delegate;
    
      ForwardingImmutableSet(Set<E> delegate) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jan 23 18:43:40 GMT 2024
    - 2.2K bytes
    - Viewed (0)
Back to top