TItemDescriptor - will be DataStoreTypes.ItemDescriptor or DataStoreTypes.SerializedItemDescriptorpublic static final class DataStoreTypes.ChangeSet<TItemDescriptor>
extends java.lang.Object
This class is not stable, and not subject to any backwards compatibility guarantees or semantic versioning. It is in early access. If you want access to this feature please join the EAP. https://launchdarkly.com/docs/sdk/features/data-saving-mode
| Constructor and Description |
|---|
ChangeSet(DataStoreTypes.ChangeSetType type,
com.launchdarkly.sdk.internal.fdv2.sources.Selector selector,
java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TItemDescriptor>>> data,
java.lang.String environmentId,
boolean shouldPersist)
Constructs a new ChangeSet instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TItemDescriptor>>> |
getData()
Returns a list of changes.
|
java.lang.String |
getEnvironmentId()
Returns the environment ID associated with the change.
|
com.launchdarkly.sdk.internal.fdv2.sources.Selector |
getSelector()
Returns the selector for this change.
|
DataStoreTypes.ChangeSetType |
getType()
Returns the type of the changeset.
|
int |
hashCode() |
boolean |
shouldPersist()
Returns whether this data should be persisted to persistent stores.
|
java.lang.String |
toString() |
public ChangeSet(DataStoreTypes.ChangeSetType type, com.launchdarkly.sdk.internal.fdv2.sources.Selector selector, java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TItemDescriptor>>> data, java.lang.String environmentId, boolean shouldPersist)
type - the type of the changesetselector - the selector for this changedata - the list of changesenvironmentId - the environment ID, or null if not availableshouldPersist - true if the data should be persisted to persistent stores, false otherwisepublic DataStoreTypes.ChangeSetType getType()
public com.launchdarkly.sdk.internal.fdv2.sources.Selector getSelector()
public java.lang.String getEnvironmentId()
public java.lang.Iterable<java.util.Map.Entry<DataStoreTypes.DataKind,DataStoreTypes.KeyedItems<TItemDescriptor>>> getData()
public boolean shouldPersist()
If true, indicates that the data should be propagated to any connected persistent stores. If false, indicates that the data should not be persisted (e.g., data from an untrusted source like a file cache).
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object