Alachisoft.NCache.Common.Extensibility.ModuleInfo Maven / Gradle / Ivy
package Alachisoft.NCache.Common.Extensibility;
import com.alachisoft.ncache.serialization.core.io.ICompactSerializable;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectInput;
import com.alachisoft.ncache.serialization.core.io.NCacheObjectOutput;
import com.alachisoft.ncache.serialization.standard.io.CompactReader;
import com.alachisoft.ncache.serialization.standard.io.CompactWriter;
import java.io.IOException;
import java.io.Serializable;
public class ModuleInfo implements ICompactSerializable, Serializable {
private String privateVersion;
private String privateName;
public ModuleInfo(String name, String version) {
setName(name);
setVersion(version);
}
public final String getVersion() {
return privateVersion;
}
public final void setVersion(String value) {
privateVersion = value;
}
public final String getName() {
return privateName;
}
public final void setName(String value) {
privateName = value;
}
public final void Deserialize(CompactReader reader) throws IOException {
setName(reader.ReadString());
setVersion(reader.ReadString());
}
public final void Serialize(CompactWriter writer) throws IOException {
writer.Write(getName());
writer.Write(getVersion());
}
public final ModuleInfo DeepClone() {
return new ModuleInfo(this.getName(), this.getVersion());
}
@Override
public void serialize(NCacheObjectOutput out) throws IOException {
}
@Override
public void deserialize(NCacheObjectInput in) throws IOException, ClassNotFoundException {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy