Package com.adyen.model.balanceplatform
Class TimeOfDay
- java.lang.Object
-
- com.adyen.model.balanceplatform.TimeOfDay
-
public class TimeOfDay extends Object
TimeOfDay
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_END_TIMEstatic StringJSON_PROPERTY_START_TIME
-
Constructor Summary
Constructors Constructor Description TimeOfDay()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TimeOfDayendTime(String endTime)The end time in a time-only ISO-8601 extended offset format.booleanequals(Object o)Return true if this TimeOfDay object is equal to o.static TimeOfDayfromJson(String jsonString)Create an instance of TimeOfDay given an JSON stringStringgetEndTime()The end time in a time-only ISO-8601 extended offset format.StringgetStartTime()The start time in a time-only ISO-8601 extended offset format.inthashCode()voidsetEndTime(String endTime)The end time in a time-only ISO-8601 extended offset format.voidsetStartTime(String startTime)The start time in a time-only ISO-8601 extended offset format.TimeOfDaystartTime(String startTime)The start time in a time-only ISO-8601 extended offset format.StringtoJson()Convert an instance of TimeOfDay to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_END_TIME
public static final String JSON_PROPERTY_END_TIME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_START_TIME
public static final String JSON_PROPERTY_START_TIME
- See Also:
- Constant Field Values
-
-
Method Detail
-
endTime
public TimeOfDay endTime(String endTime)
The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.- Parameters:
endTime-- Returns:
- the current
TimeOfDayinstance, allowing for method chaining
-
getEndTime
public String getEndTime()
The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.- Returns:
- endTime
-
setEndTime
public void setEndTime(String endTime)
The end time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.- Parameters:
endTime-
-
startTime
public TimeOfDay startTime(String startTime)
The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.- Parameters:
startTime-- Returns:
- the current
TimeOfDayinstance, allowing for method chaining
-
getStartTime
public String getStartTime()
The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.- Returns:
- startTime
-
setStartTime
public void setStartTime(String startTime)
The start time in a time-only ISO-8601 extended offset format. For example: **08:00:00+02:00**, **22:30:00-03:00**.- Parameters:
startTime-
-
equals
public boolean equals(Object o)
Return true if this TimeOfDay object is equal to o.
-
fromJson
public static TimeOfDay fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of TimeOfDay given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TimeOfDay
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to TimeOfDay
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of TimeOfDay to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-