java.com.ionic.sdk.agent.cipher.batch.data.DataItem Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ionic-sdk Show documentation
Show all versions of ionic-sdk Show documentation
The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.
package com.ionic.sdk.agent.cipher.batch.data;
import java.util.Arrays;
/**
* Generic container for array of bytes.
*/
public class DataItem {
/**
* The data associated with the item.
*/
private final byte[] data;
/**
* Constructor.
*
* @param data the data to be stored
*/
public DataItem(final byte[] data) {
this.data = Arrays.copyOf(data, data.length);
}
/**
* @return the data stored in this object
*/
public byte[] getData() {
return Arrays.copyOf(data, data.length);
}
}