Class SubFeatureList

    • Method Detail

      • get

        public SimpleFeature get​(int position)
        item at the specified index.
        Parameters:
        position - index of item
        Returns:
        the item at the specified index.
        Throws:
        IndexOutOfBoundsException - if index is not between 0 and size
      • createIndex

        protected List<FeatureId> createIndex()
        Put this SubFeatureList in touch with its inner index
      • lastIndexOf

        public int lastIndexOf​(SimpleFeature feature)
      • subList

        public SimpleFeatureCollection subList​(Filter subfilter)
        Sublist of this sublist!

        Implementation will ensure this does not get out of hand, order is maintained and only indexed once.

      • getFeatureMember

        public SimpleFeature getFeatureMember​(String id)
                                       throws NoSuchElementException
        Description copied from interface: RandomFeatureAccess
        Access Feature content by feature id.
        Specified by:
        getFeatureMember in interface RandomFeatureAccess
        Returns:
        Feature with the indicated or id
        Throws:
        NoSuchElementException - if a Feature with the indicated id is not present
      • openIterator

        public Iterator<SimpleFeature> openIterator()
        Returns a quick iterator that uses get and size methods.

        As with all resource collections it is assumed that the iterator will be closed after use.

        Returns:
        an iterator over the elements in this list in proper sequence.
        See Also:
        #modCount