Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 387 for Immutable (0.16 sec)

  1. android/guava/src/com/google/common/graph/GraphBuilder.java

     *
     * <p>Examples of use:
     *
     * <pre>{@code
     * // Building a mutable graph
     * MutableGraph<String> graph = GraphBuilder.undirected().allowsSelfLoops(true).build();
     * graph.putEdge("bread", "bread");
     * graph.putEdge("chocolate", "peanut butter");
     * graph.putEdge("peanut butter", "jelly");
     *
     * // Building an immutable graph
     * ImmutableGraph<String> immutableGraph =
     *     GraphBuilder.undirected()
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 03 01:21:31 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CollectCollectors.java

      private static final Collector<Object, ?, ImmutableList<Object>> TO_IMMUTABLE_LIST =
          Collector.of(
              ImmutableList::builder,
              ImmutableList.Builder::add,
              ImmutableList.Builder::combine,
              ImmutableList.Builder::build);
    
      private static final Collector<Object, ?, ImmutableSet<Object>> TO_IMMUTABLE_SET =
          Collector.of(
              ImmutableSet::builder,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

    import com.google.common.primitives.Primitives;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import com.google.errorprone.annotations.DoNotCall;
    import com.google.errorprone.annotations.Immutable;
    import java.io.Serializable;
    import java.util.Map;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 10 21:56:03 GMT 2023
    - 7.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

      }
    
      /** Returns an immutable multimap containing a single entry. */
      public static <K, V> ImmutableListMultimap<K, V> of(K k1, V v1) {
        ImmutableListMultimap.Builder<K, V> builder = ImmutableListMultimap.builder();
        builder.put(k1, v1);
        return builder.build();
      }
    
      /** Returns an immutable multimap containing the given entries, in order. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java

            NetworkBuilder.directed().<String, Integer>immutable().addNode("A").build();
    
        assertThat(network.nodes()).containsExactly("A");
        assertThat(network.edges()).isEmpty();
      }
    
      @Test
      public void immutableNetworkBuilder_putEdgeFromNodes() {
        ImmutableNetwork<String, Integer> network =
            NetworkBuilder.directed().<String, Integer>immutable().addEdge("A", "B", 10).build();
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Sun May 05 18:02:35 GMT 2019
    - 5.5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableTable.java

      }
    
      /**
       * Returns an empty immutable table.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked")
      public static <R, C, V> ImmutableTable<R, C, V> of() {
        return (ImmutableTable<R, C, V>) SparseImmutableTable.EMPTY;
      }
    
      /** Returns an immutable table containing a single cell. */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/CollectCollectors.java

      private static final Collector<Object, ?, ImmutableList<Object>> TO_IMMUTABLE_LIST =
          Collector.of(
              ImmutableList::builder,
              ImmutableList.Builder::add,
              ImmutableList.Builder::combine,
              ImmutableList.Builder::build);
    
      private static final Collector<Object, ?, ImmutableSet<Object>> TO_IMMUTABLE_SET =
          Collector.of(
              ImmutableSet::builder,
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MultimapsTest.java

        ImmutableListMultimap<String, Integer> immutable =
            ImmutableListMultimap.of("a", 1, "b", 2, "a", 3);
        assertSame(immutable, Multimaps.unmodifiableListMultimap(immutable));
        assertSame(
            immutable, Multimaps.unmodifiableListMultimap((ListMultimap<String, Integer>) immutable));
      }
    
      @SuppressWarnings("deprecation")
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableMultiset.java

      }
    
      /**
       * Returns the empty immutable multiset.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      @SuppressWarnings("unchecked") // all supported methods are covariant
      public static <E> ImmutableMultiset<E> of() {
        return (ImmutableMultiset<E>) RegularImmutableMultiset.EMPTY;
      }
    
      /**
       * Returns an immutable multiset containing a single element.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  10. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/ApiChange.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package gradlebuild.binarycompatibility
    
    import groovy.transform.Immutable
    
    @Immutable
    class ApiChange {
        String type
        String member
        List<String> changes
    
        static ApiChange parse(Object json) {
            new ApiChange(json.type, json.member, json.changes ?: [])
        }
    
    Groovy
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 1023 bytes
    - Viewed (0)
Back to top