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

Alachisoft.NCache.Common.Extensibility.Client.RPC.MethodArguments Maven / Gradle / Ivy

package Alachisoft.NCache.Common.Extensibility.Client.RPC;


public class MethodArguments {
    private java.util.ArrayList _arguments = new java.util.ArrayList<>();

    public MethodArguments() {
    }

    public MethodArguments(Object[] argument) {
        AddAllArgument(argument);
    }

    public java.util.ArrayList getArguments() {
        return _arguments;
    }

    public void Add(Object argument) {
        this._arguments.add(argument);
    }

    public void Add(Iterable arguments) {
        AddAllArgument(arguments);
    }

    public boolean Remove(Object argumentToRemove) {
        return this._arguments.remove(argumentToRemove);
    }

    private void AddAllArgument(Object[] arguments) {
        for (Object arg : arguments) {
            _arguments.add(arg);
        }
    }

    private void AddAllArgument(Iterable arguments) {
        for (Object arg : arguments) {
            _arguments.add(arg);
        }
    }
}