public class Time
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Class and Description |
---|---|
static class |
Time.Builder |
Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<Time> |
CREATOR |
Modifier and Type | Method and Description |
---|---|
static Time.Builder |
builder() |
int |
describeContents() |
boolean |
equals(java.lang.Object o) |
static Time |
fromBleValue(byte[] value)
Returns Time instance parsed from BLE Current Time characteristic value.
|
static Time |
getCurrentUTC()
Create Time instance based on current UTC time.
|
int |
getDayOfMonth() |
int |
getDayOfWeek() |
int |
getHour() |
int |
getMinute() |
int |
getMonth() |
int |
getSecond() |
int |
getYear() |
int |
hashCode() |
byte[] |
toBleValue() |
java.lang.String |
toString() |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
public static final android.os.Parcelable.Creator<Time> CREATOR
public static Time.Builder builder()
public static Time fromBleValue(byte[] value)
value
- KontaktDeviceCharacteristic.CURRENT_TIME
value.public static Time getCurrentUTC()
public int getHour()
public int getMinute()
public int getSecond()
public int getDayOfWeek()
public int getDayOfMonth()
public int getMonth()
public int getYear()
public byte[] toBleValue()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public int describeContents()
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable