Code example for Splitter

Methods: split

0
	} 
 
	// The rights can be granted by manually editing the users' file and adding a line a la: 
	// rights:all,some,delete_user,edit_grammar 
	public Set<String> getRights() {
		return ImmutableSet.copyOf(SPLITTER_RIGHTS.split(getUserData("rights")));
	} 
 
	public boolean hasRight(String right) {
		Set<String> rights = getRights();
		if (rights.contains("all")) return true;
		return rights.contains(right);
	} 
	 
	/** 
	 * Returns the user data with the given property name. 
	 *  
	 * @param name The property name. 
	 * @return The data for the respective name. 
	 */ 
Contextual code suggestions in your IDE  Get Codota for Java