-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
withLink() how to specify name/title/description? #35
Comments
James, On the Resource interface there is a "full" argument method: Resource withLink(String href, String rel, This lets you add a name, title, lang and predicate as optionals. It's Re: the last email - looks like I added the URI based variations of the On 19/06/12 5:04 PM, James Ladd wrote:
|
Mark, Im not sure how to call the method - do you have an example? BTW - you could make the withLink method a var args when you get to the On Tue, Jun 19, 2012 at 3:39 PM, Mark Derricutt <
|
On 19/06/12 5:46 PM, James Ladd wrote:
The Optional class is from Google Guava and can be created via: Optional.of(something) for a "this is not null" result or: The vararg idea is interesting, I have an idea of doing that in a nice |
How do I do the predicate argument? With the other attributes you could return builders for those too.
Sent from a Mind Control Device On 19/06/2012, at 7:20 PM, Mark Derricuttreply@reply.github.com wrote:
|
Predicate is another Guava interface: http://docs.guava-libraries.googlecode.com/git/javadoc/com/google/common/base/Predicates.html A Predicate has one method called apply(T t) which simply returns I'm using it in HalBuilder to provide a means of doing conditional On Tue Jun 19 21:42:28 2012, James Ladd wrote:
|
How do you specify the name/title or description attributes of a Link using the
withLink methods of the builder?
The text was updated successfully, but these errors were encountered: