Class LevelInequalityRule


  • public class LevelInequalityRule
    extends java.lang.Object
    A Rule class implementing inequality evaluation for Levels (log4j and util.logging) using the toInt method.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.List levelList
      Level list.
      private static java.util.List utilLoggingLevelList
      List equivalents of java.util.logging levels.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private LevelInequalityRule()
      Create new instance.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Rule getRule​(java.lang.String inequalitySymbol, java.lang.String value)
      Create new rule.
      private static void populateLevels()
      Populate list of levels.
      • Methods inherited from class java.lang.Object

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

      • levelList

        private static java.util.List levelList
        Level list.
      • utilLoggingLevelList

        private static java.util.List utilLoggingLevelList
        List equivalents of java.util.logging levels.
    • Constructor Detail

      • LevelInequalityRule

        private LevelInequalityRule()
        Create new instance.
    • Method Detail

      • populateLevels

        private static void populateLevels()
        Populate list of levels.
      • getRule

        public static Rule getRule​(java.lang.String inequalitySymbol,
                                   java.lang.String value)
        Create new rule.
        Parameters:
        inequalitySymbol - inequality symbol.
        value - Symbolic name of comparison level.
        Returns:
        instance of AbstractRule.