Class NotEqual

  • All Implemented Interfaces:
    Expression

    class NotEqual
    extends java.lang.Object
    implements Expression
    Expression for the comparison "not equal" operator.
    Since:
    0.7.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Version parsedVersion
      The parsed version, the right-hand operand of the "not equal" operator.
    • Constructor Summary

      Constructors 
      Constructor Description
      NotEqual​(Version parsedVersion)
      Constructs a NotEqual expression with the parsed version.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean interpret​(Version version)
      Checks if the current version does not equal the parsed version.
      • Methods inherited from class java.lang.Object

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

      • parsedVersion

        private final Version parsedVersion
        The parsed version, the right-hand operand of the "not equal" operator.
    • Constructor Detail

      • NotEqual

        NotEqual​(Version parsedVersion)
        Constructs a NotEqual expression with the parsed version.
        Parameters:
        parsedVersion - the parsed version
    • Method Detail

      • interpret

        public boolean interpret​(Version version)
        Checks if the current version does not equal the parsed version.
        Specified by:
        interpret in interface Expression
        Parameters:
        version - the version to compare with, the left-hand operand of the "not equal" operator
        Returns:
        true if the version does not equal the parsed version or false otherwise