[New] Added UserRep.hasProperty()

This commit is contained in:
Robert von Burg 2021-05-17 21:21:55 +02:00
parent b7ce4b355c
commit 2e86dd7f71
1 changed files with 12 additions and 0 deletions

View File

@ -259,6 +259,18 @@ public class UserRep implements Serializable {
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
*