Interface Queryable

    • Method Detail

      • getResourceName

        java.lang.String getResourceName()
        Return the resource name.
        Returns:
        Resource name.
      • evaluate

        <O> java.util.Collection<O> evaluate​(java.util.Collection<O> dataSource)
        This method evaluate each object of the collection and sort filtered object to create a result add with the object filtered and sorted. If there are order fields added then the result implementation is a TreeSet implementation else the result implementation is a LinkedHashSet implementation in order to guarantee the data order from the source
        Type Parameters:
        O - Kind of instances of the data collection.
        Parameters:
        dataSource - Data source to evaluate the query.
        Returns:
        Result add filtered and sorted.
      • evaluate

        <O> java.util.Collection<O> evaluate​(java.util.Collection<O> dataSource,
                                             Queryable.Consumer<O> consumer)
        This method evaluate each object of the collection and sort filtered object to create a result add with the object filtered and sorted. If there are order fields added then the result implementation is a TreeSet implementation else the result implementation is a LinkedHashSet implementation in order to guarantee the data order from the source
        Type Parameters:
        O - Kind of instances of the data collection.
        Parameters:
        dataSource - Data source to evaluate the query.
        consumer - Data source consumer.
        Returns:
        Result add filtered and sorted.
      • evaluate

        <O> java.util.Collection<O> evaluate​(Queryable.DataSource<O> dataSource)
        This method evaluate each object of the collection and sort filtered object to create a result add with the object filtered and sorted. If there are order fields added then the result implementation is a TreeSet implementation else the result implementation is a LinkedHashSet implementation in order to guarantee the data order from the source
        Type Parameters:
        O - Kind of instances of the data collection.
        Parameters:
        dataSource - Data source to evaluate the query.
        Returns:
        Result add filtered and sorted.
      • evaluate

        <O> java.util.Collection<O> evaluate​(Queryable.DataSource<O> dataSource,
                                             Queryable.Consumer<O> consumer)
        This method evaluate each object of the collection and sort filtered object to create a result add with the object filtered and sorted. If there are order fields added then the result implementation is a TreeSet implementation else the result implementation is a LinkedHashSet implementation in order to guarantee the data order from the source
        Type Parameters:
        O - Kind of instances of the data collection.
        Parameters:
        dataSource - Data source to evaluate the query.
        consumer - Data source consumer.
        Returns:
        Result add filtered and sorted.