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 booleanequals(java.lang.Object obj)java.lang.StringgetStringValue()Returns the key's value at the time returned byKeyModification.getTimestamp(), decoded as a UTF-8 string.java.time.InstantgetTimestamp()Returns the timestamp of the key modification entry.java.lang.StringgetTxId()Returns the transaction id.byte[]getValue()Returns the key's value at the time returned byKeyModification.getTimestamp().inthashCode()booleanisDeleted()Returns the deletion marker.
-
-
-
Method Detail
-
getTxId
public java.lang.String getTxId()
Description copied from interface:KeyModificationReturns the transaction id.- Specified by:
getTxIdin interfaceKeyModification- Returns:
- tx id of modification
-
getValue
public byte[] getValue()
Description copied from interface:KeyModificationReturns the key's value at the time returned byKeyModification.getTimestamp().- Specified by:
getValuein interfaceKeyModification- Returns:
- value
-
getStringValue
public java.lang.String getStringValue()
Description copied from interface:KeyModificationReturns the key's value at the time returned byKeyModification.getTimestamp(), decoded as a UTF-8 string.- Specified by:
getStringValuein interfaceKeyModification- Returns:
- value as string
-
getTimestamp
public java.time.Instant getTimestamp()
Description copied from interface:KeyModificationReturns the timestamp of the key modification entry.- Specified by:
getTimestampin interfaceKeyModification- Returns:
- timestamp
-
isDeleted
public boolean isDeleted()
Description copied from interface:KeyModificationReturns the deletion marker.- Specified by:
isDeletedin interfaceKeyModification- Returns:
- is key was deleted
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-