SexualActivityRecord
public final class SexualActivityRecord implements Record
Captures an occurrence of sexual activity. Each record is a single occurrence. ProtectionUsed field is optional.
Summary
Constants |
|
|---|---|
static final int |
|
static final int |
|
static final int |
Public constructors |
|---|
SexualActivityRecord( |
Public methods |
|
|---|---|
boolean |
|
@NonNull Metadata |
Set of common metadata associated with the written record. |
final int |
Whether protection was used during sexual activity. |
@NonNull Instant |
getTime()Time the record happened. |
ZoneOffset |
User experienced zone offset at |
int |
hashCode() |
@NonNull String |
toString() |
Constants
Public constructors
SexualActivityRecord
public SexualActivityRecord(
@NonNull Instant time,
ZoneOffset zoneOffset,
@NonNull Metadata metadata,
int protectionUsed
)
Public methods
getMetadata
public @NonNull Metadata getMetadata()
Set of common metadata associated with the written record.
getProtectionUsed
public final int getProtectionUsed()
Whether protection was used during sexual activity. Optional field, null if unknown. Allowed values: Protection.
| See also | |
|---|---|
SexualActivityRecord.Protection |
getZoneOffset
public ZoneOffset getZoneOffset()
User experienced zone offset at time, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.