org.qi4j.library.rest.common.link

## Class LinksBuilder<T extends LinksBuilder>

- java.lang.Object
- - org.qi4j.library.rest.common.link.LinksBuilder<T>

-     public class LinksBuilder<T extends LinksBuilder>
      extends Object

  Builder for making it easier to create LinksValue/LinkValue

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected ValueBuilder<Link>` | `linkBuilder`
    `protected ValueBuilder<? extends Links>` | `linksBuilder`
    `protected ValueBuilderFactory` | `vbf`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `LinksBuilder(ValueBuilderFactory vbf)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `T` | `addLink(Link link)`
    `T` | `addLink(String description, String id)`
    `T` | `addLink(String description, String id, String rel, String href, String classes)`
    `T` | `classes(String classes)`
    `T` | `command(String commandName)`
    `Links` | `newLinks()`
    `T` | `path(String subPath)`
    `T` | `rel(String rel)`

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

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

- - ### Field Detail

    - #### linksBuilder

          protected ValueBuilder<? extends Links> linksBuilder

    - #### linkBuilder

          protected ValueBuilder<Link> linkBuilder

    - #### vbf

          protected ValueBuilderFactory vbf

  - ### Constructor Detail

    - #### LinksBuilder

          public LinksBuilder(ValueBuilderFactory vbf)

  - ### Method Detail

    - #### path

          public T path(@Optional
               String subPath)

    - #### rel

          public T rel(String rel)

    - #### classes

          public T classes(String classes)

    - #### command

          public T command(String commandName)

    - #### addLink

          public T addLink(Link link)

    - #### addLink

          public T addLink(String description,
                  String id)

    - #### addLink

          public T addLink(String description,
                  String id,
                  String rel,
                  String href,
                  String classes)

    - #### newLinks

          public Links newLinks()