import java.beans.PropertyChangeListener;
import net.pterodactylus.util.beans.AbstractBean;
-import net.pterodactylus.util.beans.Comparer;
/**
* Container for project information. A Project is capable of notifying
public void setName(String name) {
String oldName = this.name;
this.name = name;
- if (!Comparer.equal(oldName, name)) {
+ if (!equal(oldName, name)) {
firePropertyChange(PROPERTY_NAME, oldName, name);
}
}
public void setDescription(String description) {
String oldDescription = this.description;
this.description = description;
- if (!Comparer.equal(oldDescription, description)) {
+ if (!equal(oldDescription, description)) {
firePropertyChange(PROPERTY_DESCRIPTION, oldDescription, description);
}
}
public void setPublicKey(String publicKey) {
String oldPublicKey = this.publicKey;
this.publicKey = publicKey;
- if (!Comparer.equal(oldPublicKey, publicKey)) {
+ if (!equal(oldPublicKey, publicKey)) {
firePropertyChange(PROPERTY_PUBLIC_KEY, oldPublicKey, publicKey);
}
}
public void setPrivateKey(String privateKey) {
String oldPrivateKey = this.privateKey;
this.privateKey = privateKey;
- if (!Comparer.equal(oldPrivateKey, privateKey)) {
+ if (!equal(oldPrivateKey, privateKey)) {
firePropertyChange(PROPERTY_PRIVATE_KEY, oldPrivateKey, privateKey);
}
}