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

com.ideaaedi.commonds.tuple.BasicNameValue Maven / Gradle / Ivy

The newest version!
package com.ideaaedi.commonds.tuple;

import lombok.Data;

import java.io.Serializable;

/**
 * 名称 - 值
 *
 * @author JustryDeng 
 * @since 2100.8.2
 */
@Data
public class BasicNameValue implements NameValue {
    
    /**
     * 名称
     */
    private String name;
    
    /**
     * 值
     */
    private Serializable value;
    
    /**
     * fast create instance
     */
    public static BasicNameValue of(String name, Serializable value) {
        BasicNameValue basicNameValue = new BasicNameValue();
        basicNameValue.setValue(value);
        basicNameValue.setName(name);
        return basicNameValue;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy