Class Document


  • public class Document
    extends java.lang.Object
    • Constructor Detail

      • Document

        public Document​(Identity rootId)
      • Document

        public Document​(Identity rootId,
                        long version)
    • Method Detail

      • getRootId

        public Identity getRootId()
      • getVersion

        public long getVersion()
      • isNew

        public boolean isNew()
      • getRootEntity

        public Entity getRootEntity()
      • containsEntity

        public boolean containsEntity​(Identity id)
      • getEntity

        public java.util.Optional<Entity> getEntity​(Identity id)
      • addEntity

        public void addEntity​(Entity entity)
      • getEntityIds

        public java.util.Set<Identity> getEntityIds()
      • allEntities

        public java.util.stream.Stream<Entity> allEntities()
      • remove

        public boolean remove​(Entity entity)