func (t *Ticket) ActorIDHex() string {
	return t.actorID.String()
}
ActorIDHex returns the actorID's hex value.
package time
import (
	"fmt"
	"math"
	"strconv"
)
const (
	MaxLamport = math.MaxUint64
	MaxDelimiter = math.MaxUint32
)
var (
	InitialTicket = NewTicket(
		0,
		0,
		InitialActorID,
	)
	MaxTicket = NewTicket(
		MaxLamport,
		MaxDelimiter,
		MaxActorID,
	)
)
type Ticket struct {
	lamport   uint64
	delimiter uint32
	actorID   *ActorID
}
func NewTicket(
	lamport uint64,
	delimiter uint32,
	actorID *ActorID,
) *Ticket {
	return &Ticket{
		lamport:   lamport,
		delimiter: delimiter,
		actorID:   actorID,
	}
}
func (t *Ticket) AnnotatedString() string {
	if t.actorID == nil {
		return fmt.Sprintf("%d:%d:nil", t.lamport, t.delimiter)
	}
	return fmt.Sprintf(
		"%d:%d:%s", t.lamport, t.delimiter, t.actorID.String()[22:24],
	)
}
func (t *Ticket) Key() string {
	if t.actorID == nil {
		return strconv.FormatUint(t.lamport, 10) +
			":" +
			strconv.FormatUint(uint64(t.delimiter), 10) +
			":"
	}
	return strconv.FormatUint(t.lamport, 10) +
		":" +
		strconv.FormatUint(uint64(t.delimiter), 10) +
		":" +
		t.actorID.String()
}
func (t *Ticket) Lamport() uint64 {
	return t.lamport
}
func (t *Ticket) Delimiter() uint32 {
	return t.delimiter
}
func (t *Ticket) ActorID() *ActorID {
	return t.actorID
}