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

io.bitexpress.topia.commons.data.retry.ParentAndCommand Maven / Gradle / Ivy

There is a newer version: 7.9.1
Show newest version
package io.bitexpress.topia.commons.data.retry;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

public class ParentAndCommand {
	private T parent;
	private CMD command;

	public ParentAndCommand(T parent, CMD command) {
		this.parent = parent;
		this.command = command;
	}

	public T getParent() {
		return parent;
	}

	public CMD getCommand() {
		return command;
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("parent", this.parent)
				.append("command", this.command).toString();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy