We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c27af4 commit 3f50b96Copy full SHA for 3f50b96
src/main/java/org/scijava/util/Types.java
@@ -494,6 +494,13 @@ public static Type array(final Type componentType) {
494
495
/**
496
* Gets the component type of the given array type, or null if not an array.
497
+ * <p>
498
+ * If you have a {@link Class}, you can call {@link Class#getComponentType()}
499
+ * for a narrower return type.
500
+ * </p>
501
502
+ * This is the opposite of {@link #array(Type)}.
503
504
*/
505
public static Type component(final Type type) {
506
if (type instanceof Class) {
0 commit comments