public class ScheduleSlot extends java.lang.Object implements java.lang.Comparable<ScheduleSlot>, MetaDefItem, java.io.Serializable
ScheduleBucket
for sorting schedule service callbacks.Constructor and Description |
---|
ScheduleSlot(int bucketNum,
int slotNum)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ScheduleSlot scheduleCallbackSlot) |
boolean |
equals(java.lang.Object o) |
int |
getBucketNum()
Returns the bucket number.
|
int |
getSlotNum()
Returns the slot number.
|
int |
hashCode() |
java.lang.String |
toString() |
public ScheduleSlot(int bucketNum, int slotNum)
bucketNum
- is the number of the bucket the slot belongs toslotNum
- is the slot number for ordering within the bucketpublic int getBucketNum()
public int getSlotNum()
public int compareTo(ScheduleSlot scheduleCallbackSlot)
compareTo
in interface java.lang.Comparable<ScheduleSlot>
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object