Modifier and Type | Field and Description |
---|---|
private int |
level |
private long |
timestamp |
private TicketType<T> |
type |
private T |
value |
Modifier | Constructor and Description |
---|---|
protected |
Ticket(TicketType<T> p_i226095_1_,
int p_i226095_2_,
T p_i226095_3_) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Ticket<?> p_compareTo_1_) |
boolean |
equals(java.lang.Object p_equals_1_) |
int |
getLevel() |
TicketType<T> |
getType() |
int |
hashCode() |
protected boolean |
isExpired(long currentTime) |
protected void |
setTimestamp(long p_229861_1_) |
java.lang.String |
toString() |
private final TicketType<T> type
private final int level
private final T value
private long timestamp
protected Ticket(TicketType<T> p_i226095_1_, int p_i226095_2_, T p_i226095_3_)
public int compareTo(Ticket<?> p_compareTo_1_)
compareTo
in interface java.lang.Comparable<Ticket<?>>
public boolean equals(java.lang.Object p_equals_1_)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public TicketType<T> getType()
public int getLevel()
protected void setTimestamp(long p_229861_1_)
protected boolean isExpired(long currentTime)