congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Flow.flowGroupListMapper
Code IndexAdd Tabnine to your IDE (free)

How to use
flowGroupListMapper
method
in
com.wizzardo.tools.collections.flow.Flow

Best Java code snippets using com.wizzardo.tools.collections.flow.Flow.flowGroupListMapper (Showing top 5 results out of 315)

origin: wizzardo/tools

public <K> FlowToMap<K, List<B>, FlowGroup<K, B>> toMap(Supplier<Map<K, FlowGroup<K, B>>> groupMapSupplier, Mapper<B, K> toKey) {
  return toMap(groupMapSupplier, toKey, Flow.<K, B>flowGroupListMapper());
}
origin: wizzardo/tools

public FlowToMap<K, List<T>, B> toMap() {
  return toMap(Flow.<K, T>flowGroupListMapper());
}
origin: com.wizzardo.tools/tools-collections

public FlowToMap<K, List<T>, B> toMap() {
  return toMap(Flow.<K, T>flowGroupListMapper());
}
origin: com.wizzardo.tools/tools-collections

public <K> FlowToMap<K, List<B>, FlowGroup<K, B>> toMap(Supplier<Map<K, FlowGroup<K, B>>> groupMapSupplier, Mapper<B, K> toKey) {
  return toMap(groupMapSupplier, toKey, Flow.<K, B>flowGroupListMapper());
}
origin: wizzardo/tools

@Test
public void test_toMap() {
  Map<Boolean, List<Integer>> map = Flow.of(1, 2, 3)
      .toMap(new Mapper<Integer, Boolean>() {
        @Override
        public Boolean map(Integer integer) {
          return integer % 2 == 0;
        }
      }, Flow.<Boolean, Integer>flowGroupListMapper())
      .get();
  Assert.assertEquals(2, map.size());
  Assert.assertEquals(1, map.get(true).size());
  Assert.assertEquals(Integer.valueOf(2), map.get(true).get(0));
  Assert.assertEquals(2, map.get(false).size());
  Assert.assertEquals(Integer.valueOf(1), map.get(false).get(0));
  Assert.assertEquals(Integer.valueOf(3), map.get(false).get(1));
}
com.wizzardo.tools.collections.flowFlowflowGroupListMapper

Popular methods of Flow

  • collect
  • first
  • groupBy
  • join
  • last
  • max
  • min
  • reduce
  • start
  • stop
  • then
  • toMap
  • then,
  • toMap,
  • toSortedList,
  • each,
  • execute,
  • hashMapSupplier,
  • of,
  • onEnd,
  • <init>

Popular in Java

  • Start an intent from android
  • setContentView (Activity)
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Socket (java.net)
    Provides a client-side TCP socket.
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now