Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 454 for mutable (0.13 sec)

  1. guava/src/com/google/common/collect/Ordering.java

       * included.
       *
       * <p>The implementation does not necessarily use a <i>stable</i> sorting algorithm; when multiple
       * elements are equivalent, it is undefined which will come first.
       *
       * <p><b>Java 8+ users:</b> Use {@code Streams.stream(iterable).collect(Comparators.least(k,
       * thisComparator))} instead.
       *
       * @return an immutable {@code RandomAccess} list of the {@code k} least elements in ascending
       *     order
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  2. CHANGELOG.md

     *  Fix: Don't crash when a fast fallback call has both a deferred connection and a held connection.
     *  Fix: `OkHttpClient` no longer implements `Cloneable`. It never should have; the class is
        immutable. This is left over from OkHttp 2.x (!) when that class was mutable. We're using the
        5.x upgrade as an opportunity to remove very obsolete APIs.
     *  Fix: Recover gracefully when Android's `NativeCrypto` crashes with `"ssl == null"`. This occurs
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Apr 18 01:31:39 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ListsTest.java

        List<String> otherWay = asList("foo", "bar", "baz");
    
        // They're logically equal
        assertEquals(ourWay, otherWay);
    
        // The result of Arrays.asList() is mutable
        otherWay.set(0, "FOO");
        assertEquals("FOO", otherWay.get(0));
    
        // But it can't grow
        assertThrows(UnsupportedOperationException.class, () -> otherWay.add("nope"));
    
        // And it can't shrink
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/ListsTest.java

        List<String> otherWay = asList("foo", "bar", "baz");
    
        // They're logically equal
        assertEquals(ourWay, otherWay);
    
        // The result of Arrays.asList() is mutable
        otherWay.set(0, "FOO");
        assertEquals("FOO", otherWay.get(0));
    
        // But it can't grow
        assertThrows(UnsupportedOperationException.class, () -> otherWay.add("nope"));
    
        // And it can't shrink
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 35K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Ordering.java

       * included.
       *
       * <p>The implementation does not necessarily use a <i>stable</i> sorting algorithm; when multiple
       * elements are equivalent, it is undefined which will come first.
       *
       * <p><b>Java 8+ users:</b> Use {@code Streams.stream(iterable).collect(Comparators.least(k,
       * thisComparator))} instead.
       *
       * @return an immutable {@code RandomAccess} list of the {@code k} least elements in ascending
       *     order
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/BloomFilter.java

        this.strategy = checkNotNull(strategy);
      }
    
      /**
       * Creates a new {@code BloomFilter} that's a copy of this instance. The new instance is equal to
       * this instance but shares no mutable state.
       *
       * @since 12.0
       */
      public BloomFilter<T> copy() {
        return new BloomFilter<>(bits.copy(), numHashFunctions, funnel, strategy);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/net/InetAddresses.java

       * <p>Only runs of two or more hextets are considered. In case of a tie, the leftmost run wins. If
       * a qualifying run is found, its hextets are replaced by the sentinel value -1.
       *
       * @param hextets {@code int[]} mutable array of eight 16-bit hextets
       */
      private static void compressLongestRunOfZeroes(int[] hextets) {
        int bestRunStart = -1;
        int bestRunLength = -1;
        int runStart = -1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMap.java

      }
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
       * @throws IllegalArgumentException if duplicate keys are provided
       */
      public static <K, V> ImmutableMap<K, V> of(K k1, V v1, K k2, V v2) {
        return RegularImmutableMap.fromEntries(entryOf(k1, v1), entryOf(k2, v2));
      }
    
      /**
       * Returns an immutable map containing the given entries, in order.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  9. src/cmd/cgo/gcc.go

    		return false
    	}
    	s = s[:len(s)-3]
    	if s == "CFType" {
    		return true
    	}
    	if c.getTypeIDs[s] {
    		return true
    	}
    	if i := strings.Index(s, "Mutable"); i >= 0 && c.getTypeIDs[s[:i]+s[i+7:]] {
    		// Mutable and immutable variants share a type ID.
    		return true
    	}
    	return false
    }
    
    // Comment from Darwin's CFInternal.h
    /*
    // Tagged pointer support
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Sep 18 15:07:34 UTC 2024
    - 97.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/InetAddresses.java

       * <p>Only runs of two or more hextets are considered. In case of a tie, the leftmost run wins. If
       * a qualifying run is found, its hextets are replaced by the sentinel value -1.
       *
       * @param hextets {@code int[]} mutable array of eight 16-bit hextets
       */
      private static void compressLongestRunOfZeroes(int[] hextets) {
        int bestRunStart = -1;
        int bestRunLength = -1;
        int runStart = -1;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 47.1K bytes
    - Viewed (0)
Back to top