public class Session extends Object implements Serializable
Constructor and Description |
---|
Session() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Integer |
getDuration()
The duration of the session, in milliseconds.
|
String |
getId()
A unique identifier for the session.
|
String |
getStartTimestamp()
The date and time when the session began.
|
String |
getStopTimestamp()
The date and time when the session ended.
|
int |
hashCode() |
void |
setDuration(Integer duration)
The duration of the session, in milliseconds.
|
void |
setId(String id)
A unique identifier for the session.
|
void |
setStartTimestamp(String startTimestamp)
The date and time when the session began.
|
void |
setStopTimestamp(String stopTimestamp)
The date and time when the session ended.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Session |
withDuration(Integer duration)
The duration of the session, in milliseconds.
|
Session |
withId(String id)
A unique identifier for the session.
|
Session |
withStartTimestamp(String startTimestamp)
The date and time when the session began.
|
Session |
withStopTimestamp(String stopTimestamp)
The date and time when the session ended.
|
public Integer getDuration()
public void setDuration(Integer duration)
duration
- The duration of the session, in milliseconds.public Session withDuration(Integer duration)
Returns a reference to this object so that method calls can be chained together.
duration
- The duration of the session, in milliseconds.public String getId()
public void setId(String id)
id
- A unique identifier for the session.public Session withId(String id)
Returns a reference to this object so that method calls can be chained together.
id
- A unique identifier for the session.public String getStartTimestamp()
public void setStartTimestamp(String startTimestamp)
startTimestamp
- The date and time when the session began.public Session withStartTimestamp(String startTimestamp)
Returns a reference to this object so that method calls can be chained together.
startTimestamp
- The date and time when the session began.public String getStopTimestamp()
public void setStopTimestamp(String stopTimestamp)
stopTimestamp
- The date and time when the session ended.public Session withStopTimestamp(String stopTimestamp)
Returns a reference to this object so that method calls can be chained together.
stopTimestamp
- The date and time when the session ended.public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.