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

de.tsl2.nano.cursus.effectus.StoredContent Maven / Gradle / Ivy

There is a newer version: 2.5.3
Show newest version
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