[New] Added UserRep.hasProperty()
This commit is contained in:
parent
b7ce4b355c
commit
2e86dd7f71
|
@ -259,6 +259,18 @@ public class UserRep implements Serializable {
|
||||||
return this.history;
|
return this.history;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns true if the the given property exists
|
||||||
|
*
|
||||||
|
* @param key
|
||||||
|
* the property key to check
|
||||||
|
*
|
||||||
|
* @return true if the the given property exists
|
||||||
|
*/
|
||||||
|
public boolean hasProperty(String key) {
|
||||||
|
return this.properties.containsKey(key);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the property with the given key
|
* Returns the property with the given key
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue