@@ -82,6 +82,12 @@ private Types() {
8282
8383 // TODO: Migrate all GenericUtils methods here.
8484
85+ /**
86+ * Gets a string representation of the given type.
87+ *
88+ * @param t Type whose name is desired.
89+ * @return The name of the given type.
90+ */
8591 public static String name (final Type t ) {
8692 // NB: It is annoying that Class.toString() prepends "class " or
8793 // "interface "; this method exists to work around that behavior.
@@ -105,6 +111,8 @@ public static String name(final Type t) {
105111 * <p>
106112 * If you want <em>all</em> raw classes of the given type, use {@link #raws}.
107113 * </p>
114+ * @param type The type from which to discern the (first) raw class.
115+ * @return The type's first raw class.
108116 */
109117 public static Class <?> raw (final Type type ) {
110118 // TODO: Consolidate with GenericUtils.
@@ -118,6 +126,8 @@ public static Class<?> raw(final Type type) {
118126 * return both {@link Number} and {@link Iterable} as its raw classes.
119127 * </p>
120128 *
129+ * @param type The type from which to discern the raw classes.
130+ * @return List of the type's raw classes.
121131 * @see #raw
122132 */
123133 public static List <Class <?>> raws (final Type type ) {
@@ -138,6 +148,10 @@ public static Field field(final Class<?> c, final String name) {
138148 * Discerns whether it would be legal to assign a reference of type
139149 * {@code source} to a reference of type {@code target}.
140150 *
151+ * @param source The type from which assignment is desired.
152+ * @param target The type to which assignment is desired.
153+ * @return True if the source is assignable to the target.
154+ * @throws NullPointerException if {@code target} is null.
141155 * @see Class#isAssignableFrom(Class)
142156 */
143157 public static boolean isAssignable (final Type source , final Type target ) {
0 commit comments