Methods Summary |
---|
public boolean | equals(java.lang.Object obj)
if (!(obj instanceof FriendBean)) {
return false;
} else {
return (((FriendBean)obj).getValue() == this.value);
}
|
public int | getValue()Getter for the property value.
return value;
|
public int | hashCode()
return new Integer(this.value).hashCode();
|
public void | setValue(int value)Setter for the property value.
if (value > 10) {
throw new IllegalArgumentException();
}
int oldValue = this.value;
this.value = value;
propertyChangeSupport.firePropertyChange("value", oldValue, value);
|
public void | someBetterMethod()A utility method someone might call.
if (Calendar.getInstance()
.get(Calendar.DAY_OF_WEEK) == Calendar.THURSDAY) {
this.setValue(25);
}
|
public void | someMethod()A utility method someone might call.
if (Calendar.getInstance()
.get(Calendar.DAY_OF_WEEK) == Calendar.THURSDAY) {
this.value = 25;
}
|