Class NodeWithContextComparator
java.lang.Object
me.lucko.luckperms.common.node.comparator.NodeWithContextComparator
- All Implemented Interfaces:
Comparator<net.luckperms.api.node.Node>
public class NodeWithContextComparator
extends Object
implements Comparator<net.luckperms.api.node.Node>
Compares permission nodes based upon their supposed "priority".
-
Method Summary
Modifier and TypeMethodDescriptionintcompare(net.luckperms.api.node.Node o1, net.luckperms.api.node.Node o2) static Comparator<? super net.luckperms.api.node.Node> normal()static Comparator<? super net.luckperms.api.node.Node> reverse()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Method Details
-
normal
-
reverse
-
compare
public int compare(net.luckperms.api.node.Node o1, net.luckperms.api.node.Node o2) - Specified by:
comparein interfaceComparator<net.luckperms.api.node.Node>
-