# Class MethodHandle

java.lang.Object
java.lang.invoke.MethodHandle

public abstract class MethodHandle extends Object

##### Deprecated

these classes are used internally for Lambda compatibility

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `MethodHandle()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `MethodHandle`
  `asCollector(Class<?> a, int b)`
  `MethodHandle`
  `asFixedArity()`
  `MethodHandle`
  `asSpreader(Class<?> a, int b)`
  `MethodHandle`
  `asType(MethodType a)`
  `MethodHandle`
  `asVarargsCollector(Class<?> a)`
  `MethodHandle`
  `bindTo(Object a)`
  `final Object`
  `invoke(Object... a)`
  `final Object`
  `invokeExact(Object... a)`
  `Object`
  `invokeWithArguments(Object... a)`
  `Object`
  `invokeWithArguments(List<?> a)`
  `boolean`
  `isVarargsCollector()`
  `MethodType`
  `type()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### MethodHandle

    public MethodHandle()

- ## Method Details

  - ### type

    public MethodType type()

  - ### invokeExact

    public final Object invokeExact(Object... a) throws Throwable
    Throws:
      `Throwable`

  - ### invoke

    public final Object invoke(Object... a) throws Throwable
    Throws:
      `Throwable`

  - ### invokeWithArguments

    public Object invokeWithArguments(Object... a) throws Throwable
    Throws:
      `Throwable`

  - ### invokeWithArguments

    public Object invokeWithArguments(List<?> a) throws Throwable
    Throws:
      `Throwable`

  - ### asType

    public MethodHandle asType(MethodType a)

  - ### asSpreader

    public MethodHandle asSpreader(Class<?> a, int b)

  - ### asCollector

    public MethodHandle asCollector(Class<?> a, int b)

  - ### asVarargsCollector

    public MethodHandle asVarargsCollector(Class<?> a)

  - ### isVarargsCollector

    public boolean isVarargsCollector()

  - ### asFixedArity

    public MethodHandle asFixedArity()

  - ### bindTo

    public MethodHandle bindTo(Object a)