CosmosItemIdentity Class
- java.
lang. Object - com.
azure. cosmos. models. CosmosItemIdentity
- com.
public final class CosmosItemIdentity
Encapsulates the PartitionKey/id tuple that uniquely identifies a CosmosItem
Constructor Summary
| Constructor | Description |
|---|---|
| CosmosItemIdentity(PartitionKey partitionKey, String id) |
Instantiates an instance of the Cosmos |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| boolean | equals(Object o) |
| String |
getId()
Gets the id value uniquely identifying this item within the scope of a logical partition |
|
Partition |
getPartitionKey()
Gets the partition key |
| int | hashCode() |
Methods inherited from java.lang.Object
Constructor Details
CosmosItemIdentity
public CosmosItemIdentity(PartitionKey partitionKey, String id)
Instantiates an instance of the CosmosItemIdentity class
Parameters:
Method Details
equals
public boolean equals(Object o)
Overrides:
CosmosItemIdentity.equals(Object o)Parameters:
getId
public String getId()
Gets the id value uniquely identifying this item within the scope of a logical partition
Returns:
getPartitionKey
public PartitionKey getPartitionKey()
Gets the partition key
Returns:
hashCode
public int hashCode()
Overrides:
CosmosItemIdentity.hashCode()