Class FilledPropertiesPriorityRule
- java.lang.Object
-
- org.openl.rules.table.properties.expressions.sequence.FilledPropertiesPriorityRule
-
- All Implemented Interfaces:
Comparator<ITableProperties>,IPriorityRule
public class FilledPropertiesPriorityRule extends Object implements IPriorityRule
Common priority rule that supports case when several rules match the runtime context. In this case the most filled by properties rule sill be selected.- Author:
- PUdalau
-
-
Constructor Summary
Constructors Constructor Description FilledPropertiesPriorityRule()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(ITableProperties properties1, ITableProperties properties2)static intgetNumberOfSpecifiedProperties(ITableProperties properties)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(ITableProperties properties1, ITableProperties properties2)
- Specified by:
comparein interfaceComparator<ITableProperties>- Specified by:
comparein interfaceIPriorityRule- Returns:
- a negative integer, zero, or a positive integer as the first argument is more prior than, has the same priority to, or is less prior.
-
getNumberOfSpecifiedProperties
public static int getNumberOfSpecifiedProperties(ITableProperties properties)
-
-