@@ -37,27 +37,27 @@ public interface Converter<T, E extends Exception> {
3737 // See also Apache Commons Lang FailableFunction
3838
3939 /**
40- * The default converter. Does nothing.
40+ * The default converter does nothing.
4141 */
4242 Converter <?, RuntimeException > DEFAULT = s -> s ;
4343
4444 /**
45- * Class name converter . Calls {@link Class#forName(String)}.
45+ * Converts a String to a {@link Class} . Calls {@link Class#forName(String)}.
4646 */
4747 Converter <Class <?>, ClassNotFoundException > CLASS = Class ::forName ;
4848
4949 /**
50- * File name converter . Calls {@link File#File(String)}.
50+ * Converts a String to a {@link File} . Calls {@link File#File(String)}.
5151 */
5252 Converter <File , NullPointerException > FILE = File ::new ;
5353
5454 /**
55- * Path converter . Calls {@link Paths#get(java.net.URI)}.
55+ * Converts a String to a {@link Path} . Calls {@link Paths#get(java.net.URI)}.
5656 */
5757 Converter <Path , InvalidPathException > PATH = Paths ::get ;
5858
5959 /**
60- * Number converter . Converts to a Double if a decimal point ('.') is in the string or a Long otherwise.
60+ * Converts a String to a {@link Number} . Converts to a Double if a decimal point ('.') is in the string or a Long otherwise.
6161 */
6262 Converter <Number , NumberFormatException > NUMBER = s -> s .indexOf ('.' ) != -1 ? (Number ) Double .valueOf (s ) : (Number ) Long .valueOf (s );
6363
@@ -69,12 +69,12 @@ public interface Converter<T, E extends Exception> {
6969 Converter <Object , ReflectiveOperationException > OBJECT = s -> CLASS .apply (s ).getConstructor ().newInstance ();
7070
7171 /**
72- * Creates a URL. Calls {@link URL#URL(String)}.
72+ * Converts a String to a {@link URL} . Calls {@link URL#URL(String)}.
7373 */
7474 Converter <URL , MalformedURLException > URL = URL ::new ;
7575
7676 /**
77- * Converts to a date using the format string Form "EEE MMM dd HH:mm:ss zzz yyyy".
77+ * Converts a String to a {@link Date} using the format string Form "EEE MMM dd HH:mm:ss zzz yyyy".
7878 */
7979 Converter <Date , java .text .ParseException > DATE = s -> new SimpleDateFormat ("EEE MMM dd HH:mm:ss zzz yyyy" ).parse (s );
8080
0 commit comments