Class QueryMoreThenProperty<P extends java.lang.Comparable<P>>

  • All Implemented Interfaces:
    java.io.Serializable

    public class QueryMoreThenProperty<P extends java.lang.Comparable<P>>
    extends QueryProperty
    Presents the query of abstract DataObjects that have Property with given name and its value more then or equal (if including) to the querying value.
    Version:
    $Id: $Id
    Author:
    denis
    See Also:
    Serialized Form
    • Constructor Detail

      • QueryMoreThenProperty

        public QueryMoreThenProperty​(java.lang.String name,
                                     P value)
        Creates new more then query.
        Parameters:
        name - of the Property for which query is created
        value - minimal allowed value of queried Property
      • QueryMoreThenProperty

        public QueryMoreThenProperty​(java.lang.String name,
                                     P value,
                                     boolean including)
        Creates new more then or equal (if including) query.
        Parameters:
        name - of the Property for which query is created
        value - minimal allowed value of queried Property
        including - the equal values
    • Method Detail

      • getComparator

        public java.lang.String getComparator()
        Returns the comparator operation for this query.
        Overrides:
        getComparator in class QueryProperty
        Returns:
        a String object.
      • doesMatch

        public boolean doesMatch​(java.lang.Object o)

        doesMatch.

        Overrides:
        doesMatch in class QueryProperty
        Parameters:
        o - a Object object.
        Returns:
        a boolean.