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

io.github.jzdayz.protocol.Header Maven / Gradle / Ivy

There is a newer version: 6.0.0
Show newest version
package io.github.jzdayz.protocol;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Header {

    private Map map = new HashMap<>();

    public String get(String key){
        return map.get(key);
    }

    public String set(String key,String val){
        return map.put(key,val);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy