package org.goko.core.feature; import org.goko.core.common.utils.ICodeBean; /** * Target board definition * * @author PsyKo * */ public class TargetBoard implements ICodeBean{ /** the identifier of the target board */ private String id; /** the user label */ private String label; /** * Constructor * @param id the identifier of the target board * @param label the user label */ public TargetBoard(String id, String label) { super(); this.id = id; this.label = label; } /** * @return the id */ public String getId() { return id; } /** * @param id the id to set */ public void setId(String id) { this.id = id; } /** * @return the label */ public String getLabel() { return label; } /** * @param label the label to set */ public void setLabel(String label) { this.label = label; } /** (inheritDoc) * @see java.lang.Object#hashCode() */ @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((id == null) ? 0 : id.hashCode()); return result; } /** (inheritDoc) * @see java.lang.Object#equals(java.lang.Object) */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; TargetBoard other = (TargetBoard) obj; if (id == null) { if (other.id != null) return false; } else if (!id.equals(other.id)) return false; return true; } /** (inheritDoc) * @see org.goko.core.common.utils.ICodeBean#getCode() */ @Override public String getCode() { return id; } /** (inheritDoc) * @see org.goko.core.common.utils.ICodeBean#setCode(java.lang.String) */ @Override public void setCode(String code) { setId(code); } }