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

com.godmonth.eth.rlp.RLPList Maven / Gradle / Ivy

There is a newer version: 0.1.6
Show newest version
/*
 * Copyright (c) [2016] [  ]
 * This file is part of the ethereumJ library.
 *
 * The ethereumJ library is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * The ethereumJ library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with the ethereumJ library. If not, see .
 */
package com.godmonth.eth.rlp;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @author Roman Mandeleil
 * @since 21.04.14
 */
public class RLPList implements RLPElement {

	private List elements;

	public RLPList(List elements) {
		this.elements = elements;
	}

	public List getElements() {
		return elements;
	}

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy