src/share/classes/sun/invoke/util/Wrapper.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/classes/sun/invoke/util/Wrapper.java Mon Mar 24 20:12:17 2014
--- new/src/share/classes/sun/invoke/util/Wrapper.java Mon Mar 24 20:12:17 2014
*** 228,245 ****
--- 228,237 ----
* The optional argument must a type compatible with this wrapper.
* Equivalent to {@code this.cast(this.zero(), type)}.
*/
public <T> T zero(Class<T> type) { return convert(zero, type); }
// /** Produce a wrapper for the given wrapper or primitive type. */
// public static Wrapper valueOf(Class<?> type) {
// if (isPrimitiveType(type))
// return forPrimitiveType(type);
// else
// return forWrapperType(type);
// }
/** Return the wrapper that wraps values of the given type.
* The type may be {@code Object}, meaning the {@code OBJECT} wrapper.
* Otherwise, the type must be a primitive.
* @throws IllegalArgumentException for unexpected types
*/
src/share/classes/sun/invoke/util/Wrapper.java
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File