Code example for LinkedHashSet

Methods: add

0
 
public class ContentReadResource implements OperationHandler { 
 
	@Override 
	public void execute(OperationContext operationContext, ResultHandler resultHandler) throws ResourceNotFoundException, OperationException {
		Set<String> children = new LinkedHashSet<String>(1);
		children.add("sites");
		children.add("templates");
    children.add("taxonomy");
    children.add("queries");
    children.add("drive");
    children.add("script");
    children.add("action");
    children.add("nodetype");
		resultHandler.completed(new ReadResourceModel("Content", children));
	} 
 
}