src/main/java/com/theoryinpractise/halbuilder5/ResourceRepresentation.java
public <R> ResourceRepresentation<R> withValue(R newValue) {
    return new ResourceRepresentation<>(
        Option.none(), links, rels, namespaceManager, newValue, resources);
  }
public <R> ResourceRepresentation<R> withValue(R newValue) {
    return new ResourceRepresentation<>(
        Option.none(), links, rels, namespaceManager, newValue, resources);
  }
public < R > ResourceRepresentation < R > withValue ( R newValue ) { return new ResourceRepresentation <> ( Option . none ( ) , links , rels , namespaceManager , newValue , resources ) ; }
Replace the value of this resource with a new value, optionally of a new type.

@param newValue The new value for this resource
@param <R> The type of the new value
@return The new resource
Replace the value of this resource with a new value optionally of a new type .