Class FilterableList.AbstractBase<T,​S extends FilterableList<T,​S>>

    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • Method Detail

      • filter

        public S filter​(ElementMatcher<? super T> elementMatcher)
        Filters any elements in this lists by the given elementMatcher and returns a list that are matched by the given matcher.
        Specified by:
        filter in interface FilterableList<T,​S extends FilterableList<T,​S>>
        Parameters:
        elementMatcher - The element matcher to match the elements of this list against.
        Returns:
        A new list only containing the matched elements.
      • wrap

        protected abstract S wrap​(List<T> values)
        Represents a list of values as an instance of this instance's list type.
        Parameters:
        values - The values to wrap in an instance of this list's type.
        Returns:
        A wrapped instance of the given values.