Here you can find the source of removeCustomFilters(List
public static List<String> removeCustomFilters(List<String> filters)
//package com.java2s; import java.util.ArrayList; import java.util.List; import java.util.ListIterator; public class Main { public static List<String> removeCustomFilters(List<String> filters) { List<String> mentions = new ArrayList<String>(); ListIterator<String> filterIterator = filters.listIterator(); while (filterIterator.hasNext()) { String[] filterSplit = filterIterator.next().split(":"); if (filterSplit[1].equals("in") && filterSplit[0].equals("mentions")) { mentions.add(filterSplit[2]); filterIterator.remove(); }// ww w . j a v a 2 s. co m } return mentions; } }