public class QuietTime extends Object implements Serializable
| Constructor and Description |
|---|
QuietTime() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getEnd()
The time at which quiet time should end.
|
String |
getStart()
The time at which quiet time should begin.
|
int |
hashCode() |
void |
setEnd(String end)
The time at which quiet time should end.
|
void |
setStart(String start)
The time at which quiet time should begin.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
QuietTime |
withEnd(String end)
The time at which quiet time should end.
|
QuietTime |
withStart(String start)
The time at which quiet time should begin.
|
public String getEnd()
public void setEnd(String end)
end - The time at which quiet time should end. The value that you
specify has to be in HH:mm format, where HH is the hour in
24-hour format (with a leading zero, if applicable), and mm is
the minutes. For example, use 02:30 to represent 2:30 AM, or
14:30 to represent 2:30 PM.public QuietTime withEnd(String end)
Returns a reference to this object so that method calls can be chained together.
end - The time at which quiet time should end. The value that you
specify has to be in HH:mm format, where HH is the hour in
24-hour format (with a leading zero, if applicable), and mm is
the minutes. For example, use 02:30 to represent 2:30 AM, or
14:30 to represent 2:30 PM.public String getStart()
public void setStart(String start)
start - The time at which quiet time should begin. The value that
you specify has to be in HH:mm format, where HH is the hour in
24-hour format (with a leading zero, if applicable), and mm is
the minutes. For example, use 02:30 to represent 2:30 AM, or
14:30 to represent 2:30 PM.public QuietTime withStart(String start)
Returns a reference to this object so that method calls can be chained together.
start - The time at which quiet time should begin. The value that
you specify has to be in HH:mm format, where HH is the hour in
24-hour format (with a leading zero, if applicable), and mm is
the minutes. For example, use 02:30 to represent 2:30 AM, or
14:30 to represent 2:30 PM.public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.