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

io.robe.common.dto.BasicPair Maven / Gradle / Ivy

There is a newer version: 0.5.0.0-1039
Show newest version
package io.robe.common.dto;

/**
 * Default DTO for basic name value pair. Will be used for simple data transfers.
 */
public class BasicPair {
    private String name;
    private String value;

    /**
     * Default Constructor .
     */
    public BasicPair() {
    }

    /**
     * Simple constructor with parameters.
     *
     * @param name
     * @param value
     */
    public BasicPair(String name, String value) {
        this.name = name;
        this.value = value;
    }

    /**
     * @return Current name
     */
    public String getName() {
        return name;
    }

    /**
     * @return Current value
     */
    public String getValue() {
        return value;
    }

    /**
     * String representation of pair
     *
     * @return name=value
     */
    @Override
    public String toString() {
        return name + "=" + value;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy