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

org.sourcelab.github.client.objects.NameAndEmail Maven / Gradle / Ivy

The newest version!
package org.sourcelab.github.client.objects;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

public class NameAndEmail {
    private final String name;
    private final String email;

    /**
     * Constructor.
     */
    @JsonCreator
    public NameAndEmail(
        @JsonProperty("name") final String name,
        @JsonProperty("email") final String email
    ) {
        this.name = name;
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public String getEmail() {
        return email;
    }

    @Override
    public String toString() {
        return "NameAndEmail{"
            + "\n\tname='" + name + '\''
            + "\n\temail='" + email + '\''
            + "\n}";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy