Package com.enonic.xp.node

## Class NodeVersionsMetadata

- java.lang.Object
- - com.enonic.xp.node.NodeVersionsMetadata

- All Implemented Interfaces:
    `Iterable<NodeVersionMetadata>`

      @PublicApi
      public class NodeVersionsMetadata
      extends Object
      implements Iterable<NodeVersionMetadata>

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `NodeVersionsMetadata.Builder` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static NodeVersionsMetadata.Builder` | `create​(NodeId nodeId)` |
    `static NodeVersionsMetadata` | `empty()` |
    `NodeVersionIds` | `getAllVersionIds()` |
    `NodeId` | `getNodeId()` |
    `Iterator<NodeVersionMetadata>` | `iterator()` |
    `int` | `size()` |

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.lang.Iterable

      `forEach, spliterator`

- - ### Method Detail

    - #### getAllVersionIds

          public NodeVersionIds getAllVersionIds()

    - #### getNodeId

          public NodeId getNodeId()

    - #### empty

          public static NodeVersionsMetadata empty()

    - #### create

          public static NodeVersionsMetadata.Builder create​(NodeId nodeId)

    - #### iterator

          public Iterator<NodeVersionMetadata> iterator()

      Specified by:
        `iterator` in interface `Iterable<NodeVersionMetadata>`

    - #### size

          public int size()