
public final class LeastPrivilegeRecommendationComparator extends Object implements Comparator<ImvRecommendationPair>
| Modifier and Type | Class and Description |
|---|---|
private static class |
LeastPrivilegeRecommendationComparator.Singleton
Singleton to instantiate the factory only on first access.
|
| Modifier | Constructor and Description |
|---|---|
private |
LeastPrivilegeRecommendationComparator()
Creates the least privilege comparator.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compare(ImvRecommendationPair o1,
ImvRecommendationPair o2) |
static Comparator<ImvRecommendationPair> |
getInstance()
Returns the singleton instance of this factory.
|
private int |
weightImvAction(long id)
Returns a weight for a action recommendation ID where the most negative
action has the highest weight.
|
private int |
weightImvEvaluation(long id)
Returns a weight for an evaluation result ID where the most negative
result has the highest weight.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequalsprivate LeastPrivilegeRecommendationComparator()
public static Comparator<ImvRecommendationPair> getInstance()
private int weightImvAction(long id)
id - the action recommendation IDprivate int weightImvEvaluation(long id)
id - the result IDpublic int compare(ImvRecommendationPair o1, ImvRecommendationPair o2)
compare in interface Comparator<ImvRecommendationPair>Copyright © 2016, Trust HS Bremen and its Contributors