me.legrange.panstamp.xml.XmlDeveloperDefinition Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of panstamp Show documentation
Show all versions of panstamp Show documentation
A Java library for working with a network of panStamp Arduino devices
package me.legrange.panstamp.xml;
import me.legrange.panstamp.definition.DeveloperDefinition;
/**
* The object represents the information associated with a panStamp developer
* in the device XML tree.
*
* @since 1.0
* @author Gideon le Grange https://github.com/GideonLeGrange *
*/
final class XmlDeveloperDefinition implements DeveloperDefinition {
@Override
public int getId() {
return id;
}
@Override
public String getName() {
return name;
}
@Override
public String toString() {
return "Developer{" + "id=" + id + ", name=" + name + '}';
}
/** Create a new instance with the given id and name */
XmlDeveloperDefinition(int id, String name) {
this.id = id;
this.name = name;
}
private final int id;
private final String name;
}