Package com.comphenix.protocol.injector
Class PrioritizedListener<TListener>
java.lang.Object
com.comphenix.protocol.injector.PrioritizedListener<TListener>
- All Implemented Interfaces:
Comparable<PrioritizedListener<TListener>>
public class PrioritizedListener<TListener>
extends Object
implements Comparable<PrioritizedListener<TListener>>
Represents a listener with a priority.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(PrioritizedListener<TListener> other) booleanRetrieve the underlying listener.Retrieve the priority of this listener.inthashCode()
-
Constructor Details
-
PrioritizedListener
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<TListener>
-
equals
-
hashCode
public int hashCode() -
getListener
Retrieve the underlying listener.- Returns:
- Underlying listener.
-
getPriority
Retrieve the priority of this listener.- Returns:
- Listener priority.
-