src/java.base/share/classes/java/lang/invoke/MethodHandles.java
changeset 59230 a2a921609481
parent 59201 b24f4caa1411
equal deleted inserted replaced
59229:fba8fa613d1a 59230:a2a921609481
  4284      * This method is also equivalent to the following code:
  4284      * This method is also equivalent to the following code:
  4285      * <blockquote><pre>
  4285      * <blockquote><pre>
  4286      * {@link #dropArguments(MethodHandle,int,Class...) dropArguments}{@code (target, pos, valueTypes.toArray(new Class[0]))}
  4286      * {@link #dropArguments(MethodHandle,int,Class...) dropArguments}{@code (target, pos, valueTypes.toArray(new Class[0]))}
  4287      * </pre></blockquote>
  4287      * </pre></blockquote>
  4288      * @param target the method handle to invoke after the arguments are dropped
  4288      * @param target the method handle to invoke after the arguments are dropped
       
  4289      * @param pos position of first argument to drop (zero for the leftmost)
  4289      * @param valueTypes the type(s) of the argument(s) to drop
  4290      * @param valueTypes the type(s) of the argument(s) to drop
  4290      * @param pos position of first argument to drop (zero for the leftmost)
       
  4291      * @return a method handle which drops arguments of the given types,
  4291      * @return a method handle which drops arguments of the given types,
  4292      *         before calling the original method handle
  4292      *         before calling the original method handle
  4293      * @throws NullPointerException if the target is null,
  4293      * @throws NullPointerException if the target is null,
  4294      *                              or if the {@code valueTypes} list or any of its elements is null
  4294      *                              or if the {@code valueTypes} list or any of its elements is null
  4295      * @throws IllegalArgumentException if any element of {@code valueTypes} is {@code void.class},
  4295      * @throws IllegalArgumentException if any element of {@code valueTypes} is {@code void.class},
  4364      * This method is also equivalent to the following code:
  4364      * This method is also equivalent to the following code:
  4365      * <blockquote><pre>
  4365      * <blockquote><pre>
  4366      * {@link #dropArguments(MethodHandle,int,List) dropArguments}{@code (target, pos, Arrays.asList(valueTypes))}
  4366      * {@link #dropArguments(MethodHandle,int,List) dropArguments}{@code (target, pos, Arrays.asList(valueTypes))}
  4367      * </pre></blockquote>
  4367      * </pre></blockquote>
  4368      * @param target the method handle to invoke after the arguments are dropped
  4368      * @param target the method handle to invoke after the arguments are dropped
       
  4369      * @param pos position of first argument to drop (zero for the leftmost)
  4369      * @param valueTypes the type(s) of the argument(s) to drop
  4370      * @param valueTypes the type(s) of the argument(s) to drop
  4370      * @param pos position of first argument to drop (zero for the leftmost)
       
  4371      * @return a method handle which drops arguments of the given types,
  4371      * @return a method handle which drops arguments of the given types,
  4372      *         before calling the original method handle
  4372      *         before calling the original method handle
  4373      * @throws NullPointerException if the target is null,
  4373      * @throws NullPointerException if the target is null,
  4374      *                              or if the {@code valueTypes} array or any of its elements is null
  4374      *                              or if the {@code valueTypes} array or any of its elements is null
  4375      * @throws IllegalArgumentException if any element of {@code valueTypes} is {@code void.class},
  4375      * @throws IllegalArgumentException if any element of {@code valueTypes} is {@code void.class},