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

com.jd.blockchain.ledger.BytesDataList Maven / Gradle / Ivy

There is a newer version: 1.6.5.RELEASE
Show newest version
package com.jd.blockchain.ledger;

public class BytesDataList implements BytesValueList {

	private BytesValue[] bytesValues;

	public BytesDataList(BytesValue... bytesValues) {
		this.bytesValues = bytesValues;
	}

	@Override
	public BytesValue[] getValues() {
		return bytesValues;
	}

	public static BytesValueList singleText(String value) {
		return new BytesDataList(TypedValue.fromText(value));
	}
	
	public static BytesValueList singleLong(long value) {
		return new BytesDataList(TypedValue.fromInt64(value));
	}
	
	public static BytesValueList singleInt(int value) {
		return new BytesDataList(TypedValue.fromInt32(value));
	}
	
	public static BytesValueList singleBoolean(boolean value) {
		return new BytesDataList(TypedValue.fromBoolean(value));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy