Example usage for java.util LinkedList add

List of usage examples for java.util LinkedList add

Introduction

In this page you can find the example usage for java.util LinkedList add.

Prototype

public boolean add(E e) 

Source Link

Document

Appends the specified element to the end of this list.

Usage

From source file:net.datapipe.CloudStack.CloudStackAPI.java

public Document deleteLBHealthCheckPolicy(String id) throws Exception {
    LinkedList<NameValuePair> arguments = newQueryValues("deleteLBHealthCheckPolicy", null);
    arguments.add(new NameValuePair("id", id));
    return Request(arguments);
}

From source file:org.deegree.securityproxy.wps.responsefilter.capabilities.WpsCapabilitiesModificationManagerCreator.java

private LinkedList<ElementPathStep> createPath(String method) {
    LinkedList<ElementPathStep> path = new LinkedList<ElementPathStep>();
    path.add(new ElementPathStep(new QName(WPS_1_0_0_NS_URI, "Capabilities")));
    path.add(new ElementPathStep(new QName(OWS_1_1_NS_URI, "OperationsMetadata")));
    path.add(new ElementPathStep(new QName(OWS_1_1_NS_URI, "Operation")));
    path.add(new ElementPathStep(new QName(OWS_1_1_NS_URI, "DCP")));
    path.add(new ElementPathStep(new QName(OWS_1_1_NS_URI, "HTTP")));
    path.add(new ElementPathStep(new QName(OWS_1_1_NS_URI, method)));
    return path;/*from www .  j  av a  2s .c  o  m*/
}

From source file:de.uniwue.info6.misc.StringTools.java

/**
 *
 *
 * @param queryText//from www . j a v  a 2  s . c om
 * @param tables
 * @param user
 * @return
 */
public static String addUserPrefix(String queryText, List<String> tables, User user) {
    LinkedList<Integer> substrings = new LinkedList<Integer>();
    int start = 0, end = queryText.length();
    for (String tab : tables) { // q&d fix
        Matcher matcher = Pattern.compile(tab.trim(), Pattern.CASE_INSENSITIVE).matcher(queryText);
        while (matcher.find()) {
            start = matcher.start(0);
            end = matcher.end(0);
            // String group = matcher.group();
            boolean leftCharacterValid = StringTools.trailingCharacter(queryText, start, true);
            boolean rightCharacterValid = StringTools.trailingCharacter(queryText, end, false);
            if (leftCharacterValid && rightCharacterValid) {
                substrings.add(start);
            }
        }
    }

    Collections.sort(substrings);

    for (int i = substrings.size() - 1; i >= 0; i--) {
        Integer sub = substrings.get(i);
        queryText = queryText.substring(0, sub) + user.getId() + "_"
                + queryText.substring(sub, queryText.length());
    }

    return queryText;
}

From source file:net.datapipe.CloudStack.CloudStackAPI.java

public Document updateAutoScaleVMGroup(String autoScaleVMGroupId, HashMap<String, String> optional)
        throws Exception {
    LinkedList<NameValuePair> arguments = newQueryValues("updateAutoScaleVmGroup", optional);
    arguments.add(new NameValuePair("id", autoScaleVMGroupId));
    return Request(arguments);
}

From source file:net.datapipe.CloudStack.CloudStackAPI.java

public Document createAutoScalePolicy(String action, String conditionIds, int duration,
        HashMap<String, String> optional) throws Exception {
    LinkedList<NameValuePair> arguments = newQueryValues("createAutoScalePolicy", optional);
    arguments.add(new NameValuePair("action", action));
    arguments.add(new NameValuePair("conditionids", conditionIds));
    arguments.add(new NameValuePair("duration", Integer.toString(duration)));
    return Request(arguments);
}

From source file:net.datapipe.CloudStack.CloudStackAPI.java

public Document listLBHealthCheckPolicies(String lbId, HashMap<String, String> optional) throws Exception {
    LinkedList<NameValuePair> arguments = newQueryValues("listLBHealthCheckPolicies", optional);
    arguments.add(new NameValuePair("lbruleid", lbId));
    return Request(arguments);
}

From source file:net.datapipe.CloudStack.CloudStackAPI.java

public Document createLBHealthCheckPolicy(String lbruleid, HashMap<String, String> optional) throws Exception {
    LinkedList<NameValuePair> arguments = newQueryValues("createLBHealthCheckPolicy", optional);
    arguments.add(new NameValuePair("lbruleid", lbruleid));
    return Request(arguments);
}

From source file:com.devbury.desktoplib.spring.LogFilterPropertyPlaceholderConfigurer.java

public void setPropertiesFile(String prop_file) {
    LinkedList<String> l = new LinkedList<String>();
    l.add(prop_file);
    setPropertiesFiles(l);/*  www . j  av  a  2 s.com*/
}

From source file:net.datapipe.CloudStack.CloudStackAPI.java

public Document createAutoScaleVmProfile(String serviceOfferingId, String templateId, String zoneId,
        HashMap<String, String> optional) throws Exception {
    LinkedList<NameValuePair> arguments = newQueryValues("createAutoScaleVmProfile", optional);
    arguments.add(new NameValuePair("serviceofferingid", serviceOfferingId));
    arguments.add(new NameValuePair("templateid", templateId));
    arguments.add(new NameValuePair("zoneid", zoneId));
    return Request(arguments);
}

From source file:org.nekorp.workflow.desktop.view.binding.imp.BindingManagerImp.java

@Override
public void clearBindings(Bindable component) {
    LinkedList<Object> targets = new LinkedList<>();
    for (Object key : this.bindings.keySet()) {
        targets.add(bindings.get(key));
    }//from w w  w  .jav a2s . c om
    for (Object obj : targets) {
        this.clearObjectBindings(obj, component);
    }
}