|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,CONSTRUCTOR}) @Retention(value=RUNTIME) public @interface FromString
Annotation used to mark a method or constructor as being suitable for converting
an object from a String
.
When applying to a method, this annotation should be applied once per class.
The method must be static and have one String
parameter with a
return type of the type that the method is implemented on.
For example, Integer.parseInt(String)
.
When applying to a constructor, this annotation should be applied to the constructor
that takes one String
parameter.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |