@Singleton public class LinkProvider extends Object implements HeaderDelegateProvider<Link>
| Constructor and Description |
|---|
LinkProvider() |
| Modifier and Type | Method and Description |
|---|---|
Link |
fromString(String value)
Parse the supplied value and create an instance of
T. |
boolean |
supports(Class<?> type)
Ascertain if the Provider supports a particular type.
|
String |
toString(Link value)
Convert the supplied value to a String.
|
public boolean supports(Class<?> type)
HeaderDelegateProvidersupports in interface HeaderDelegateProvider<Link>type - the type that is to be supported.public Link fromString(String value) throws IllegalArgumentException
RuntimeDelegate.HeaderDelegateT.fromString in interface RuntimeDelegate.HeaderDelegate<Link>value - the string value.T.IllegalArgumentException - if the supplied string cannot be parsed or is null.public String toString(Link value)
RuntimeDelegate.HeaderDelegatetoString in interface RuntimeDelegate.HeaderDelegate<Link>value - the value of type T.Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.