Skip to content

Commit 42699bc

Browse files
committed
Javadoc
1 parent bd836cf commit 42699bc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

src/main/java/org/apache/commons/imaging/ImagingParameters.java

+11-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,17 @@ public class ImagingParameters<E extends ImagingParameters<E>> {
5353
*/
5454
private PixelDensity pixelDensity;
5555

56-
// getters and setters
57-
56+
/**
57+
* Returns this instance typed as the subclass type {@code E}.
58+
* <p>
59+
* This is the same as the expression:
60+
* </p>
61+
* <pre>
62+
* (B) this
63+
* </pre>
64+
*
65+
* @return this instance typed as the subclass type {@code E}.
66+
*/
5867
@SuppressWarnings("unchecked")
5968
public E asThis() {
6069
return (E) this;

0 commit comments

Comments
 (0)