Class NodeUpdate<V>

  • Type Parameters:
    V - map value type

    public final class NodeUpdate<V>
    extends java.lang.Object
    DocumentTree node update operation.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  NodeUpdate.Builder<V>
      NodeUpdate builder.
      static class  NodeUpdate.Type
      Type of database update operation.
    • Constructor Summary

      Constructors 
      Constructor Description
      NodeUpdate()  
    • Constructor Detail

      • NodeUpdate

        public NodeUpdate()
    • Method Detail

      • type

        public NodeUpdate.Type type()
        Returns the type of update operation.
        Returns:
        type of update.
      • path

        public DocumentPath path()
        Returns the item path being updated.
        Returns:
        item path
      • value

        public V value()
        Returns the new value.
        Returns:
        item's target value.
      • version

        public long version()
        Returns the expected current version in the database for the key.
        Returns:
        expected version.
      • map

        public <T> NodeUpdate<T> map​(java.util.function.Function<V,​T> valueMapper)
        Transforms this instance into an instance of different parameterized types.
        Type Parameters:
        T - value type of returned instance
        Parameters:
        valueMapper - transcoder to value type
        Returns:
        new instance
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object object)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • newBuilder

        public static <V> NodeUpdate.Builder<V> newBuilder()
        Creates a new builder instance.
        Type Parameters:
        V - value type
        Returns:
        builder.