T - type of objectspublic final class DeleteResults<T>
extends java.lang.Object
Instances of this class are Immutable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static <T> DeleteResults<T> |
newInstance(java.util.Map<T,DeleteResult> results)
Creates new instance of immutable container for results of Delete Operation
|
java.util.Map<T,DeleteResult> |
results()
Returns immutable Map of pairs (object, deleteResult)
|
java.lang.String |
toString() |
boolean |
wasDeleted(T object)
Checks whether particular object was deleted
|
boolean |
wasNotDeleted(T object)
Checks whether particular object was NOT deleted
|
@NonNull public static <T> DeleteResults<T> newInstance(@NonNull java.util.Map<T,DeleteResult> results)
T - type of objectsresults - map with results of Delete OperationDeleteResults@NonNull public java.util.Map<T,DeleteResult> results()
public boolean wasDeleted(@NonNull
T object)
object - object to checkpublic boolean wasNotDeleted(@NonNull
T object)
object - object to checkpublic 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