Class FlagTerm

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Flags flags
      The flags to test.
      protected boolean set
      Indicates whether to test for the presence or absence of the specified flag.
    • Constructor Summary

      Constructors 
      Constructor Description
      FlagTerm​(Flags flags, boolean set)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object other)  
      Flags getFlags()
      Returns the flags to test.
      boolean getTestSet()
      Indicates whether to test for the presence or the absence of the specified flags.
      int hashCode()  
      boolean match​(Message msg)
      Returns true if the flags in the specified message match this term.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • set

        protected boolean set
        Indicates whether to test for the presence or absence of the specified flag. If true, test whether all the specified flags are present, otherwise test whether all the specified flags are absent.
      • flags

        protected Flags flags
        The flags to test.
    • Constructor Detail

      • FlagTerm

        public FlagTerm​(Flags flags,
                        boolean set)
        Constructor.
        Parameters:
        flags - the flags to test
        set - whether to test for presence or absence of the specified flags
    • Method Detail

      • getFlags

        public Flags getFlags()
        Returns the flags to test.
      • getTestSet

        public boolean getTestSet()
        Indicates whether to test for the presence or the absence of the specified flags.
      • match

        public boolean match​(Message msg)
        Returns true if the flags in the specified message match this term.
        Specified by:
        match in class SearchTerm
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object