Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 713 for Mutable (0.06 sec)

  1. guava-tests/test/com/google/common/collect/OrderingTest.java

      }
    
      private static <T extends @Nullable Object> List<T> shuffledCopy(List<T> in, Random random) {
        List<T> mutable = newArrayList(in);
        List<T> out = newArrayList();
        while (!mutable.isEmpty()) {
          out.add(mutable.remove(random.nextInt(mutable.size())));
        }
        return out;
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java

    import java.util.Map;
    import java.util.Set;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A mutable class-to-instance map backed by an arbitrary user-provided map. See also {@link
     * ImmutableClassToInstanceMap}.
     *
     * <p>See the Guava User Guide article on <a href=
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  3. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/ActiveProjectArtifact.java

    /**
     * Wraps an active project instance to be able to receive updates from its artifact without affecting the original
     * attributes of this artifact.
     *
     * TODO I think this exposes a design flaw in that the immutable and mutable parts of an artifact are in one class and
     * should be split. ie scope, file, etc depend on the context of use, whereas everything else is immutable.
     */
    @Deprecated
    public class ActiveProjectArtifact implements Artifact {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/graph/NetworkBuilder.java

     * href="https://github.com/google/guava/wiki/GraphsExplained#accessor-behavior">the external
     * documentation</a> for details.
     *
     * <p>Examples of use:
     *
     * <pre>{@code
     * // Building a mutable network
     * MutableNetwork<String, Integer> network =
     *     NetworkBuilder.directed().allowsParallelEdges(true).build();
     * flightNetwork.addEdge("LAX", "ATL", 3025);
     * flightNetwork.addEdge("LAX", "ATL", 1598);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Jun 03 01:21:31 UTC 2022
    - 7.4K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableCollection.java

     *       (in a way that affects its {@link Object#equals} behavior) while it is contained in a
     *       collection. Undefined behavior and bugs will result. It's generally best to avoid using
     *       mutable objects as elements at all, as many users may expect your "immutable" object to be
     *       <i>deeply</i> immutable.
     * </ul>
     *
     * <h4>Performance notes</h4>
     *
     * <ul>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/CharSource.java

       * that this method will return a different number of chars than would be returned by reading all
       * of the chars.
       *
       * <p>Additionally, for mutable sources such as {@code StringBuilder}s, a subsequent read may
       * return a different number of chars if the contents are changed.
       *
       * @since 19.0
       */
      public Optional<Long> lengthIfKnown() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:20:11 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Request.kt

        internal var method: String
        internal var headers: Headers.Builder
        internal var body: RequestBody? = null
        internal var cacheUrlOverride: HttpUrl? = null
    
        /** A mutable map of tags, or an immutable empty map if we don't have any. */
        internal var tags = mapOf<KClass<*>, Any>()
    
        constructor() {
          this.method = "GET"
          this.headers = Headers.Builder()
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 04:17:44 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/CharStreams.java

       * <p>Does not close the {@code Readable}. If reading files or resources you should use the {@link
       * Files#readLines} and {@link Resources#readLines} methods.
       *
       * @param r the object to read from
       * @return a mutable {@link List} containing all the lines
       * @throws IOException if an I/O error occurs
       */
      public static List<String> readLines(Readable r) throws IOException {
        List<String> result = new ArrayList<>();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 17 14:35:11 UTC 2023
    - 10.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/math/PairedStatsAccumulator.java

    import static java.lang.Double.isNaN;
    
    import com.google.common.annotations.GwtIncompatible;
    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.primitives.Doubles;
    
    /**
     * A mutable object which accumulates paired double values (e.g. points on a plane) and tracks some
     * basic statistics over all the values added so far. This class is not thread safe.
     *
     * @author Pete Gillin
     * @since 20.0
     */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri May 12 17:02:53 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

      private lateinit var serverIpv6: MockWebServer
    
      private val listener = RecordingEventListener()
      private lateinit var client: OkHttpClient
      private lateinit var url: HttpUrl
    
      /**
       * This is mutable and order matters. By default, it contains [IPv4, IPv6]. Tests may manipulate
       * it to prefer IPv6.
       */
      private var dnsResults = listOf<InetAddress>()
    
      @BeforeEach
      internal fun setUp() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top