Here you can find the source of parseRsfCommands(List
private static void parseRsfCommands(List<String> rsfLines, List<String> addItemCommands, List<String> appendEntryCommands)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { private static void parseRsfCommands(List<String> rsfLines, List<String> addItemCommands, List<String> appendEntryCommands) { rsfLines.stream().forEach(command -> { if (command.startsWith("add-item")) { addItemCommands.add(command);//from w w w. ja v a 2 s . c o m } else if (command.startsWith("append-entry")) { appendEntryCommands.add(command); } }); } }