public EntityBuilder addLinks ( List < Link > links ) { if ( links == null ) { throw new IllegalArgumentException ( "links cannot be null." ) ; } for ( Link link : links ) { addLink ( link ) ; } return this ; }
Adds list of links to the entity to be built . Links are optional according to the Siren specification however an entity should always have a self link to be considered HATEAOS compliant .