Interface SelectViaCopyToArray<T extends FeatureStructure>

  • Type Parameters:
    T - the type of the element
    All Known Implementing Classes:
    FSArray, FSArrayList, FSHashSet, FSLinkedHashSet

    public interface SelectViaCopyToArray<T extends FeatureStructure>
    Classes which provide a toArrayForSelect() method that returns a FeatureStructure[] can implement this to enable the class to be used as a "select" source T extends FeatureStructure because FSArray with no typing needs to default to FeatureStructure for backwards compatibility
    • Method Detail

      • select

        default SelectFSs_impl<T> select()
        Returns:
        a new instance of SelectFSs
      • select

        default <U extends TSelectFSs<U> select​(Type filterByType)
        Treat an FSArray as a source for SelectFSs.
        Type Parameters:
        U - generic type being selected
        Parameters:
        filterByType - only includes elements of this type
        Returns:
        a new instance of SelectFSs
        Throws:
        java.lang.IllegalArgumentException - if no type is specified.
      • select

        default <U extends TSelectFSs<U> select​(java.lang.Class<U> filterByType)
        Treat an FSArray as a source for SelectFSs.
        Type Parameters:
        U - generic type being selected
        Parameters:
        filterByType - only includes elements of this JCas class
        Returns:
        a new instance of SelectFSs
        Throws:
        java.lang.IllegalArgumentException - if no type is specified.
      • select

        default <U extends TSelectFSs<U> select​(int filterByType)
        Treat an FSArray as a source for SelectFSs.
        Type Parameters:
        U - generic type being selected
        Parameters:
        filterByType - only includes elements of this JCas class's type
        Returns:
        a new instance of SelectFSs
      • select

        default <U extends TSelectFSs<U> select​(java.lang.String filterByType)
        Treat an FSArray as a source for SelectFSs.
        Type Parameters:
        U - generic type being selected
        Parameters:
        filterByType - only includes elements of this type (fully qualifined type name)
        Returns:
        a new instance of SelectFSs
        Throws:
        java.lang.IllegalArgumentException - if no type is specified.