@ThreadSafe public class TOUAcceptance extends Object
| Modifier and Type | Field and Description |
|---|---|
private DateTime |
acceptanceDate
The terms of use acceptance date.
|
private String |
fingerprint
The terms of use fingerpint.
|
private String |
version
The terms of use version.
|
| Modifier | Constructor and Description |
|---|---|
|
TOUAcceptance(String version,
String fingerprint,
DateTime acceptanceDate)
Constructs a terms of use acceptance using version, fingerprint and an acceptance date.
|
private |
TOUAcceptance(TOU tou,
DateTime acceptanceDate)
Constructs a terms of use acceptance using a terms of use and an acceptance date.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(TOU tou)
Checks if this terms of acceptance contains a specific terms of use.
|
static TOUAcceptance |
createToUAcceptance(TOU tou,
DateTime acceptanceDate)
Creates a terms of use acceptance.
|
static TOUAcceptance |
emptyToUAcceptance()
Creates an empty terms of use acceptance.
|
DateTime |
getAcceptanceDate()
Gets the acceptance date.
|
String |
getFingerprint()
Gets the fingerprint.
|
String |
getVersion()
Gets the version.
|
private final String version
private final String fingerprint
private final DateTime acceptanceDate
public TOUAcceptance(String version, String fingerprint, DateTime acceptanceDate)
version - The version.fingerprint - The fingerprint.acceptanceDate - The acceptance date.public String getVersion()
public String getFingerprint()
public DateTime getAcceptanceDate()
public static TOUAcceptance createToUAcceptance(TOU tou, DateTime acceptanceDate)
tou - The TOU.acceptanceDate - The acceptance date.public static TOUAcceptance emptyToUAcceptance()
Copyright © 1999–2014. All rights reserved.