/** * Creates a new {@code SimpleNamedFilterList} instance with the specified {@code name} and {@code backingList}. * * @param name the name to assign to this instance. * @param backingList the list instance used to back all of this class's {@link List} method implementations. * @throws IllegalArgumentException if {@code name} is null or empty. * @throws NullPointerException if the backing list is {@code null}. */ public SimpleNamedFilterList(String name, List<Filter> backingList) { if (backingList == null) { throw new NullPointerException("backingList constructor argument cannot be null."); } this.backingList = backingList; setName(name); }
protected NamedFilterList ensureChain(String chainName) { NamedFilterList chain = getChain(chainName); if (chain == null) { chain = new SimpleNamedFilterList(chainName); this.filterChains.put(chainName, chain); } return chain; }