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

com.fastjrun.example.dto.BasePacket Maven / Gradle / Ivy

There is a newer version: 3.0
Show newest version
/*
 * Copyright (C) 2019 fastjrun, Inc. All Rights Reserved.
 */
package com.fastjrun.example.dto;

public abstract class BasePacket {

    private T head;

    private V body;

    public T getHead() {
        return head;
    }

    public void setHead(T head) {
        this.head = head;
    }

    public V getBody() {
        return body;
    }

    public void setBody(V body) {
        this.body = body;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(this.getClass().getSimpleName());
        sb.append("[head=").append(this.head);
        sb.append(",body=").append(this.body);
        sb.append("]");
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy