Class Invocation


  • @Beta
    public final class Invocation
    extends Object
    Context needed to call Invokable.invoke(Object, Object...)
    • Method Detail

      • create

        public static Invocation create​(com.google.common.reflect.Invokable<?,​?> invokable,
                                        List<Object> args)
        Parameters:
        args - as these represent parameters, can contain nulls
      • create

        public static Invocation create​(com.google.common.reflect.Invokable<?,​?> invokable)
        invocation without arguments.
        Throws:
        IllegalArgumentException - if in invokable requires arguments
      • getInvokable

        public com.google.common.reflect.Invokable<?,​?> getInvokable()
        what we can invoke
      • getArgs

        public List<Object> getArgs()
        arguments applied to getInvokable() during Invokable.invoke(Object, Object...)
        Parameters:
        args - as these represent parameters, can contain nulls
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object