|
20 | 20 | * for {@link java.io.File}s and {@link java.nio.file.Path}. |
21 | 21 | * <h2>Sorting</h2> |
22 | 22 | * <p> |
23 | | - * All the comparators include <em>convenience</em> utility <code>sort(File...)</code> and |
24 | | - * <code>sort(List)</code> methods. |
| 23 | + * All the comparators include <em>convenience</em> utility {@code sort(File...)} and |
| 24 | + * {@code sort(List)} methods. |
25 | 25 | * </p> |
26 | 26 | * <p> |
27 | 27 | * For example, to sort the files in a directory by name: |
|
62 | 62 | * <li><a href="DefaultFileComparator.html">DefaultFileComparator</a> - default file compare: |
63 | 63 | * <ul> |
64 | 64 | * <li><a href="DefaultFileComparator.html#DEFAULT_COMPARATOR">DEFAULT_COMPARATOR</a> |
65 | | - * - Compare using <code>File.compareTo(File)</code> method. |
| 65 | + * - Compare using {@code File.compareTo(File)} method. |
66 | 66 | * </li> |
67 | 67 | * <li><a href="DefaultFileComparator.html#DEFAULT_REVERSE">DEFAULT_REVERSE</a> |
68 | | - * - Reverse compare of <code>File.compareTo(File)</code> method. |
| 68 | + * - Reverse compare of {@code File.compareTo(File)} method. |
69 | 69 | * </li> |
70 | 70 | * </ul> |
71 | 71 | * </li> |
72 | 72 | * <li><a href="DirectoryFileComparator.html">DirectoryFileComparator</a> - compare by type (directory or file): |
73 | 73 | * <ul> |
74 | 74 | * <li><a href="DirectoryFileComparator.html#DIRECTORY_COMPARATOR">DIRECTORY_COMPARATOR</a> |
75 | | - * - Compare using <code>File.isDirectory()</code> method (directories < files). |
| 75 | + * - Compare using {@code File.isDirectory()} method (directories < files). |
76 | 76 | * </li> |
77 | 77 | * <li><a href="DirectoryFileComparator.html#DIRECTORY_REVERSE">DIRECTORY_REVERSE</a> |
78 | | - * - Reverse compare of <code>File.isDirectory()</code> method (directories >files). |
| 78 | + * - Reverse compare of {@code File.isDirectory()} method (directories >files). |
79 | 79 | * </li> |
80 | 80 | * </ul> |
81 | 81 | * </li> |
82 | 82 | * <li><a href="ExtensionFileComparator.html">ExtensionFileComparator</a> - compare file extensions: |
83 | 83 | * <ul> |
84 | 84 | * <li><a href="ExtensionFileComparator.html#EXTENSION_COMPARATOR">EXTENSION_COMPARATOR</a> |
85 | | - * - Compare using <code>FilenameUtils.getExtension(String)</code> method. |
| 85 | + * - Compare using {@code FilenameUtils.getExtension(String)} method. |
86 | 86 | * </li> |
87 | 87 | * <li><a href="ExtensionFileComparator.html#EXTENSION_REVERSE">EXTENSION_REVERSE</a> |
88 | | - * - Reverse compare of <code>FilenameUtils.getExtension(String)</code> method. |
| 88 | + * - Reverse compare of {@code FilenameUtils.getExtension(String)} method. |
89 | 89 | * </li> |
90 | 90 | * <li><a href="ExtensionFileComparator.html#EXTENSION_INSENSITIVE_COMPARATOR">EXTENSION_INSENSITIVE_COMPARATOR</a> |
91 | | - * - Case-insensitive compare using <code>FilenameUtils.getExtension(String)</code> method. |
| 91 | + * - Case-insensitive compare using {@code FilenameUtils.getExtension(String)} method. |
92 | 92 | * </li> |
93 | 93 | * <li><a href="ExtensionFileComparator.html#EXTENSION_INSENSITIVE_REVERSE">EXTENSION_INSENSITIVE_REVERSE</a> |
94 | | - * - Reverse case-insensitive compare of <code>FilenameUtils.getExtension(String)</code> method. |
| 94 | + * - Reverse case-insensitive compare of {@code FilenameUtils.getExtension(String)} method. |
95 | 95 | * </li> |
96 | 96 | * <li><a href="ExtensionFileComparator.html#EXTENSION_SYSTEM_COMPARATOR">EXTENSION_SYSTEM_COMPARATOR</a> |
97 | | - * - System sensitive compare using <code>FilenameUtils.getExtension(String)</code> method. |
| 97 | + * - System sensitive compare using {@code FilenameUtils.getExtension(String)} method. |
98 | 98 | * </li> |
99 | 99 | * <li><a href="ExtensionFileComparator.html#EXTENSION_SYSTEM_REVERSE">EXTENSION_SYSTEM_REVERSE</a> |
100 | | - * - Reverse system sensitive compare of <code>FilenameUtils.getExtension(String)</code> method. |
| 100 | + * - Reverse system sensitive compare of {@code FilenameUtils.getExtension(String)} method. |
101 | 101 | * </li> |
102 | 102 | * </ul> |
103 | 103 | * </li> |
104 | 104 | * <li><a href="LastModifiedFileComparator.html">LastModifiedFileComparator</a> |
105 | 105 | * - compare the file's last modified date/time: |
106 | 106 | * <ul> |
107 | 107 | * <li><a href="LastModifiedFileComparator.html#LASTMODIFIED_COMPARATOR">LASTMODIFIED_COMPARATOR</a> |
108 | | - * - Compare using <code>File.lastModified()</code> method. |
| 108 | + * - Compare using {@code File.lastModified()} method. |
109 | 109 | * </li> |
110 | 110 | * <li><a href="LastModifiedFileComparator.html#LASTMODIFIED_REVERSE">LASTMODIFIED_REVERSE</a> |
111 | | - * - Reverse compare of <code>File.lastModified()</code> method. |
| 111 | + * - Reverse compare of {@code File.lastModified()} method. |
112 | 112 | * </li> |
113 | 113 | * </ul> |
114 | 114 | * </li> |
115 | 115 | * <li><a href="NameFileComparator.html">NameFileComparator</a> - compare file names: |
116 | 116 | * <ul> |
117 | 117 | * <li><a href="NameFileComparator.html#NAME_COMPARATOR">NAME_COMPARATOR</a> |
118 | | - * - Compare using <code>File.getName()</code> method. |
| 118 | + * - Compare using {@code File.getName()} method. |
119 | 119 | * </li> |
120 | 120 | * <li><a href="NameFileComparator.html#NAME_REVERSE">NAME_REVERSE</a> |
121 | | - * - Reverse compare of <code>File.getName()</code> method. |
| 121 | + * - Reverse compare of {@code File.getName()} method. |
122 | 122 | * </li> |
123 | 123 | * <li><a href="NameFileComparator.html#NAME_INSENSITIVE_COMPARATOR">NAME_INSENSITIVE_COMPARATOR</a> |
124 | | - * - Case-insensitive compare using <code>File.getName()</code> method. |
| 124 | + * - Case-insensitive compare using {@code File.getName()} method. |
125 | 125 | * </li> |
126 | 126 | * <li><a href="NameFileComparator.html#NAME_INSENSITIVE_REVERSE">NAME_INSENSITIVE_REVERSE</a> |
127 | | - * - Reverse case-insensitive compare of <code>File.getName()</code> method. |
| 127 | + * - Reverse case-insensitive compare of {@code File.getName()} method. |
128 | 128 | * </li> |
129 | 129 | * <li><a href="NameFileComparator.html#NAME_SYSTEM_COMPARATOR">NAME_SYSTEM_COMPARATOR</a> |
130 | | - * - System sensitive compare using <code>File.getName()</code> method. |
| 130 | + * - System sensitive compare using {@code File.getName()} method. |
131 | 131 | * </li> |
132 | 132 | * <li><a href="NameFileComparator.html#NAME_SYSTEM_REVERSE">NAME_SYSTEM_REVERSE</a> |
133 | | - * - Reverse system sensitive compare of <code>File.getName()</code> method. |
| 133 | + * - Reverse system sensitive compare of {@code File.getName()} method. |
134 | 134 | * </li> |
135 | 135 | * </ul> |
136 | 136 | * </li> |
137 | 137 | * <li><a href="PathFileComparator.html">PathFileComparator</a> - compare file paths: |
138 | 138 | * <ul> |
139 | 139 | * <li><a href="PathFileComparator.html#PATH_COMPARATOR">PATH_COMPARATOR</a> |
140 | | - * - Compare using <code>File.getPath()</code> method. |
| 140 | + * - Compare using {@code File.getPath()} method. |
141 | 141 | * </li> |
142 | 142 | * <li><a href="PathFileComparator.html#PATH_REVERSE">PATH_REVERSE</a> |
143 | | - * - Reverse compare of <code>File.getPath()</code> method. |
| 143 | + * - Reverse compare of {@code File.getPath()} method. |
144 | 144 | * </li> |
145 | 145 | * <li><a href="PathFileComparator.html#PATH_INSENSITIVE_COMPARATOR">PATH_INSENSITIVE_COMPARATOR</a> |
146 | | - * - Case-insensitive compare using <code>File.getPath()</code> method. |
| 146 | + * - Case-insensitive compare using {@code File.getPath()} method. |
147 | 147 | * </li> |
148 | 148 | * <li><a href="PathFileComparator.html#PATH_INSENSITIVE_REVERSE">PATH_INSENSITIVE_REVERSE</a> |
149 | | - * - Reverse case-insensitive compare of <code>File.getPath()</code> method. |
| 149 | + * - Reverse case-insensitive compare of {@code File.getPath()} method. |
150 | 150 | * </li> |
151 | 151 | * <li><a href="PathFileComparator.html#PATH_SYSTEM_COMPARATOR">PATH_SYSTEM_COMPARATOR</a> |
152 | | - * - System sensitive compare using <code>File.getPath()</code> method. |
| 152 | + * - System sensitive compare using {@code File.getPath()} method. |
153 | 153 | * </li> |
154 | 154 | * <li><a href="PathFileComparator.html#PATH_SYSTEM_REVERSE">PATH_SYSTEM_REVERSE</a> |
155 | | - * - Reverse system sensitive compare of <code>File.getPath()</code> method. |
| 155 | + * - Reverse system sensitive compare of {@code File.getPath()} method. |
156 | 156 | * </li> |
157 | 157 | * </ul> |
158 | 158 | * </li> |
159 | 159 | * <li><a href="SizeFileComparator.html">SizeFileComparator</a> - compare the file's size: |
160 | 160 | * <ul> |
161 | 161 | * <li><a href="SizeFileComparator.html#SIZE_COMPARATOR">SIZE_COMPARATOR</a> |
162 | | - * - Compare using <code>File.length()</code> method (directories treated as zero length). |
| 162 | + * - Compare using {@code File.length()} method (directories treated as zero length). |
163 | 163 | * </li> |
164 | 164 | * <li><a href="SizeFileComparator.html#SIZE_REVERSE">LASTMODIFIED_REVERSE</a> |
165 | | - * - Reverse compare of <code>File.length()</code> method (directories treated as zero length). |
| 165 | + * - Reverse compare of {@code File.length()} method (directories treated as zero length). |
166 | 166 | * </li> |
167 | 167 | * <li><a href="SizeFileComparator.html#SIZE_SUMDIR_COMPARATOR">SIZE_SUMDIR_COMPARATOR</a> |
168 | | - * - Compare using <code>FileUtils.sizeOfDirectory(File)</code> method |
| 168 | + * - Compare using {@code FileUtils.sizeOfDirectory(File)} method |
169 | 169 | * (sums the size of a directory's contents). |
170 | 170 | * </li> |
171 | 171 | * <li><a href="SizeFileComparator.html#SIZE_SUMDIR_REVERSE">SIZE_SUMDIR_REVERSE</a> |
172 | | - * - Reverse compare of <code>FileUtils.sizeOfDirectory(File)</code> method |
| 172 | + * - Reverse compare of {@code FileUtils.sizeOfDirectory(File)} method |
173 | 173 | * (sums the size of a directory's contents). |
174 | 174 | * </li> |
175 | 175 | * </ul> |
|
0 commit comments