@Generated(value="OracleSDKGenerator", comments="API Version: 20200430") public final class Time extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
A model to hold time in hour:minute:second format.
Note: Objects should always be created or deserialized using the Time.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the Time.Builder
, which maintain a
set of all explicitly set fields called Time.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
Time.Builder |
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
Time(Integer hour,
Integer minute,
Integer second)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Time.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Integer |
getHour()
The hour value.
|
Integer |
getMinute()
The minute value.
|
Integer |
getSecond()
The second value.
|
int |
hashCode() |
Time.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"hour","minute","second"}) public Time(Integer hour, Integer minute, Integer second)
public static Time.Builder builder()
Create a new builder.
public Time.Builder toBuilder()
public Integer getHour()
The hour value.
public Integer getMinute()
The minute value.
public Integer getSecond()
The second value.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.