Class FilteredSegmentList

  • All Implemented Interfaces:
    Iterable, Collection, List

    public class FilteredSegmentList
    extends AbstractList
    Virtual list generated from a backing list by filtering on the element types. This exposes a segment of the backing list through the filter, with multiple filters used to expose the entire backing list piecemeal. It can only be used with lists of elements.
    Author:
    Dennis M. Sosnoski
    • Constructor Detail

      • FilteredSegmentList

        public FilteredSegmentList​(org.jibx.util.LazyList list,
                                   long match,
                                   FilteredSegmentList prior,
                                   OpenAttrBase owner)
        Constructor with everything specified.
        Parameters:
        list - backing list
        match - included element types mask
        prior - filter which comes before this one (null if none)
        owner - element owning this list
      • FilteredSegmentList

        public FilteredSegmentList​(org.jibx.util.LazyList list,
                                   long match,
                                   OpenAttrBase owner)
        Constructor with no prior filter.
        Parameters:
        list - backing list
        match - included element types mask
        owner - element owning this list