public final class WithDataSubjectId<T>
extends java.lang.Object
implements java.io.Serializable, scala.Product, scala.Serializable
| Constructor and Description |
|---|
WithDataSubjectId(java.lang.String dataSubjectId,
scala.Option<T> payload) |
| Modifier and Type | Method and Description |
|---|---|
static <T> WithDataSubjectId<T> |
apply(java.lang.String dataSubjectId,
scala.Option<T> payload)
Representation of data that need to be encrypted for GDPR when stored.
|
static <T> WithDataSubjectId<T> |
apply(java.lang.String dataSubjectId,
T payload)
Scala API: factory method for
WithDataSubjectId including payload
that need to be encrypted for GDPR. |
boolean |
canEqual(java.lang.Object x$1) |
<T> WithDataSubjectId<T> |
copy(java.lang.String dataSubjectId,
scala.Option<T> payload) |
<T> java.lang.String |
copy$default$1() |
<T> scala.Option<T> |
copy$default$2() |
static <T> WithDataSubjectId<T> |
create(java.lang.String dataSubjectId,
T payload)
Java API: factory method for
WithDataSubjectId including payload
that need to be encrypted for GDPR. |
static <T> WithDataSubjectId<T> |
createShredded(java.lang.Class<T> payloadClass,
java.lang.String dataSubjectId)
Java API: factory method for
WithDataSubjectId with payload
that is shredded |
java.lang.String |
dataSubjectId() |
boolean |
equals(java.lang.Object x$1) |
java.util.Optional<? extends T> |
getPayload()
Java API: Get the payload, unless it has been shredded.
|
int |
hashCode() |
boolean |
isShredded() |
scala.Option<T> |
payload() |
int |
productArity() |
java.lang.Object |
productElement(int x$1) |
scala.collection.Iterator<java.lang.Object> |
productIterator() |
java.lang.String |
productPrefix() |
static <T> WithDataSubjectId<T> |
shredded(java.lang.String dataSubjectId)
Scala API: factory method for
WithDataSubjectId with payload
that is shredded |
java.lang.String |
toString() |
static <T> scala.Option<scala.Tuple2<java.lang.String,scala.Option<T>>> |
unapply(WithDataSubjectId<T> x$0) |
public WithDataSubjectId(java.lang.String dataSubjectId,
scala.Option<T> payload)
public static <T> WithDataSubjectId<T> apply(java.lang.String dataSubjectId, T payload)
WithDataSubjectId including payload
that need to be encrypted for GDPR.dataSubjectId - (undocumented)payload - (undocumented)public static <T> WithDataSubjectId<T> create(java.lang.String dataSubjectId, T payload)
WithDataSubjectId including payload
that need to be encrypted for GDPR.dataSubjectId - (undocumented)payload - (undocumented)public static <T> WithDataSubjectId<T> shredded(java.lang.String dataSubjectId)
WithDataSubjectId with payload
that is shreddeddataSubjectId - (undocumented)public static <T> WithDataSubjectId<T> createShredded(java.lang.Class<T> payloadClass, java.lang.String dataSubjectId)
WithDataSubjectId with payload
that is shreddedpayloadClass - (undocumented)dataSubjectId - (undocumented)public static <T> WithDataSubjectId<T> apply(java.lang.String dataSubjectId, scala.Option<T> payload)
payload is empty for entries that have been removed.
dataSubjectId - The identifier representing the encryption key for the data subject (person)payload - The payload that is be encrypted, or None if the payload has been shredded.public static <T> scala.Option<scala.Tuple2<java.lang.String,scala.Option<T>>> unapply(WithDataSubjectId<T> x$0)
public java.lang.String dataSubjectId()
public scala.Option<T> payload()
public boolean isShredded()
true if the payload has been shreddedpublic java.util.Optional<? extends T> getPayload()
public <T> WithDataSubjectId<T> copy(java.lang.String dataSubjectId, scala.Option<T> payload)
public <T> java.lang.String copy$default$1()
public <T> scala.Option<T> copy$default$2()
public java.lang.String productPrefix()
productPrefix in interface scala.Productpublic int productArity()
productArity in interface scala.Productpublic java.lang.Object productElement(int x$1)
productElement in interface scala.Productpublic scala.collection.Iterator<java.lang.Object> productIterator()
productIterator in interface scala.Productpublic boolean canEqual(java.lang.Object x$1)
canEqual in interface scala.Equalspublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object x$1)
equals in interface scala.Equalsequals in class java.lang.Object