All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.restup.service.IndexedVarArgsMethodCommand Maven / Gradle / Ivy

There is a newer version: 0.0.5
Show newest version
package com.github.restup.service;

import java.lang.reflect.Method;

/**
 * Determines the index mapping of method parameters to the array of available arguments when instantiated
 */
public class IndexedVarArgsMethodCommand extends AbstractIndexedVarArgsMethodCommand {

    private final Integer[] indexes;

    public IndexedVarArgsMethodCommand(Object objectInstance, Method method, Object[] arguments) {
        super(objectInstance, method);
        this.indexes = bind(method, arguments);
    }

    @Override
    protected Integer[] getIndexes(Method method, Object[] args) {
        return indexes;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy