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

de.datasecs.hydra.shared.protocol.packets.StandardPacket Maven / Gradle / Ivy

There is a newer version: 1.6.5
Show newest version
package de.datasecs.hydra.shared.protocol.packets;

/**
 * Created with love by DataSecs on 09.04.18
 */
@PacketId(Byte.MIN_VALUE)
public class StandardPacket extends Packet {

    private Object object;

    public StandardPacket() {}

    public StandardPacket(Object object) {
        this.object = object;
    }

    @Override
    public void read() {
        object = readObject();
    }

    @Override
    public void write() {
        writeObject(object);
    }

    @Override
    public String toString() {
        return object.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy