Class FakeKeyValue


  • public class FakeKeyValue
    extends Object
    Fake, testing implementation of a KeyValueTable entry.
    • Constructor Detail

      • FakeKeyValue

        public FakeKeyValue​(Variant value,
                            Instant timestamp)
        Creates a new FakeKeyValue.
        Parameters:
        value - entry value
        timestamp - entry timestamp
    • Method Detail

      • getValue

        public Variant getValue()
        Returns the entry value.
        Returns:
        the entry value
      • setValue

        public void setValue​(Variant value)
        Sets the entry value.
        Parameters:
        value - new entry value
      • getTimestamp

        public Instant getTimestamp()
        Returns the entry timestamp.
        Returns:
        the entry timestamp
      • getUpdatedAt

        public Instant getUpdatedAt()
        Returns the entry updated at timestamp.
        Returns:
        the entry updated at timestamp
      • setUpdatedAt

        public void setUpdatedAt​(Instant updatedAt)
        Sets the entry updated at timestamp.
        Parameters:
        updatedAt - the new entry updated at timestamp