de.tsl2.nano.cursus.effectus.StoredContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.cursus Show documentation
Show all versions of tsl2.nano.cursus Show documentation
repeatable course/process (delta-processing-engine, event sourcing)
package de.tsl2.nano.cursus.effectus;
import de.tsl2.nano.core.util.ByteUtil;
/**
* NOT USED YET!
* Holds content, calculated once and reused on re-doing the same command again - without re-calcuation
* @author Tom
*/
public class StoredContent implements IStoredContent {
private String identifier;
private String path;
private String typeName;
private byte[] content;
@Override
public String getIdentifier() {
return identifier;
}
@Override
public String getPath() {
return path;
}
@Override
public String getTypeName() {
return typeName;
}
@Override
public byte[] getContent() {
return content;
}
@SuppressWarnings("unchecked")
@Override
public T toObject() {
return (T) ByteUtil.convertToObject(content);
}
@Override
public void fromObject(T instance) {
typeName = instance.getClass().getName();
//TODO
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy