public final class ChunkTicket<T> extends Object implements Comparable<ChunkTicket<?>>
Modifier and Type | Field and Description |
---|---|
private T |
argument |
private int |
level |
private long |
tickCreated |
private ChunkTicketType<T> |
type |
Modifier | Constructor and Description |
---|---|
protected |
ChunkTicket(ChunkTicketType<T> type,
int level,
T argument) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ChunkTicket<?> chunkTicket) |
boolean |
equals(Object obj) |
int |
getLevel() |
ChunkTicketType<T> |
getType() |
int |
hashCode() |
protected boolean |
isExpired(long currentTick) |
protected void |
setTickCreated(long tickCreated) |
String |
toString() |
private final ChunkTicketType<T> type
private final int level
private final T argument
private long tickCreated
protected ChunkTicket(ChunkTicketType<T> type, int level, T argument)
public int compareTo(ChunkTicket<?> chunkTicket)
compareTo
in interface Comparable<ChunkTicket<?>>
public ChunkTicketType<T> getType()
public int getLevel()
protected void setTickCreated(long tickCreated)
protected boolean isExpired(long currentTick)