mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-09-28 22:57:29 +02:00
Cleanup Attribute Javadocs.
This commit is contained in:
parent
a841aa7215
commit
7acfb3586c
@ -93,9 +93,11 @@ public Attribute(String name) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the name of this attribute. Attribute names allow for distinguishing
|
||||
* different attributes (such as between a PvP flag and an image storage
|
||||
* attribute). A region cannot have two attributes with the same name.
|
||||
* Get the name of this attribute.
|
||||
* <p>
|
||||
* Attribute names allow for distinguishing different attributes (such as
|
||||
* between a PvP flag and an image storage attribute). A region cannot have
|
||||
* two attributes with the same name.
|
||||
*
|
||||
* @return the name of the attribute
|
||||
*/
|
||||
@ -104,13 +106,15 @@ public String getName() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the name of an attribute. Remember that the corresponding
|
||||
* {@link Region} must be made aware of this change or very bad
|
||||
* things may happen.
|
||||
* Set the name of an attribute.
|
||||
* <p>
|
||||
* Remember that the corresponding {@link Region} must be made aware of this
|
||||
* change or very bad things may happen.
|
||||
* <p>
|
||||
* All valid non-empty Unicode strings are supported for names.
|
||||
*
|
||||
* @param name new name to use
|
||||
* @param name
|
||||
* new name to use
|
||||
* @see Region#rename(Attribute, String)
|
||||
*/
|
||||
public void setName(String name) {
|
||||
@ -158,8 +162,12 @@ public int hashCode() {
|
||||
*/
|
||||
@Override
|
||||
public boolean equals(Object obj) {
|
||||
if (obj == null) return false;
|
||||
if (!(obj instanceof Attribute)) return false;
|
||||
if (obj == null) {
|
||||
return false;
|
||||
}
|
||||
if (!(obj instanceof Attribute)) {
|
||||
return false;
|
||||
}
|
||||
return getName().equals(((Attribute) obj).getName());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user