@Target({METHOD,CONSTRUCTOR})
@Retention(RUNTIME)
public @interface FromString
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.
Copyright © 2010–2018 Joda.org. All rights reserved.