Package org.hyperledger.fabric.shim.impl
Class KeyModificationImpl
- java.lang.Object
-
- org.hyperledger.fabric.shim.impl.KeyModificationImpl
-
- All Implemented Interfaces:
KeyModification
public class KeyModificationImpl extends java.lang.Object implements KeyModification
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getStringValue()
Returns the key's value at the time returned byKeyModification.getTimestamp()
, decoded as a UTF-8 string.java.time.Instant
getTimestamp()
Returns the timestamp of the key modification entry.java.lang.String
getTxId()
Returns the transaction id.byte[]
getValue()
Returns the key's value at the time returned byKeyModification.getTimestamp()
.int
hashCode()
boolean
isDeleted()
Returns the deletion marker.
-
-
-
Method Detail
-
getTxId
public java.lang.String getTxId()
Description copied from interface:KeyModification
Returns the transaction id.- Specified by:
getTxId
in interfaceKeyModification
- Returns:
- tx id of modification
-
getValue
public byte[] getValue()
Description copied from interface:KeyModification
Returns the key's value at the time returned byKeyModification.getTimestamp()
.- Specified by:
getValue
in interfaceKeyModification
- Returns:
- value
-
getStringValue
public java.lang.String getStringValue()
Description copied from interface:KeyModification
Returns the key's value at the time returned byKeyModification.getTimestamp()
, decoded as a UTF-8 string.- Specified by:
getStringValue
in interfaceKeyModification
- Returns:
- value as string
-
getTimestamp
public java.time.Instant getTimestamp()
Description copied from interface:KeyModification
Returns the timestamp of the key modification entry.- Specified by:
getTimestamp
in interfaceKeyModification
- Returns:
- timestamp
-
isDeleted
public boolean isDeleted()
Description copied from interface:KeyModification
Returns the deletion marker.- Specified by:
isDeleted
in interfaceKeyModification
- Returns:
- is key was deleted
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-