public class TokenPosition<T extends Token<T>> extends DomainObject
Transient
data that allows us a estimate/position details, wait time etc or a Token relative to its TokenContainer
Constructor and Description |
---|
TokenPosition() |
TokenPosition(String json) |
TokenPosition(T token) |
TokenPosition(TokenPosition p) |
Modifier and Type | Method and Description |
---|---|
TokenContainer<T> |
getContainer() |
Number |
getCurrent()
Current position relative to the front most in the
container TokenPosition as position (>=0) |
Integer |
getEstWaitTime()
Estimated wait time in minutes
|
T |
getToken() |
void |
setContainer(TokenContainer<T> container) |
void |
setCurrent(Number current)
Current position relative to the front most in the
container TokenPosition as position (>=0) |
void |
setEstWaitTime(Integer estWaitTime)
Estimated wait time in minutes
|
void |
setToken(T token) |
public TokenPosition()
public TokenPosition(String json)
public TokenPosition(T token)
public TokenPosition(TokenPosition p)
public TokenContainer<T> getContainer()
public void setContainer(TokenContainer<T> container)
container
- the container to setpublic T getToken()
public void setToken(T token)
token
- the token to setpublic Number getCurrent()
container
public void setCurrent(Number current)
container
public Integer getEstWaitTime()
public void setEstWaitTime(Integer estWaitTime)
Copyright © 2018. All rights reserved.