Java List Last Item listToWorkspaceLocationHistoryString(List lastUsedWorkspaceLocationList)

Here you can find the source of listToWorkspaceLocationHistoryString(List lastUsedWorkspaceLocationList)

Description

list To Workspace Location History String

License

Open Source License

Declaration

private static StringBuffer listToWorkspaceLocationHistoryString(List<String> lastUsedWorkspaceLocationList) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {
    private static final String WORKSPACE_LOCATION_HISTORY_PREFERENCE_SPLIT_CHAR = ";";

    private static StringBuffer listToWorkspaceLocationHistoryString(List<String> lastUsedWorkspaceLocationList) {
        StringBuffer lastUsedWorkspaceLocations = new StringBuffer();
        for (String workspaceLocationHistoryEntry : lastUsedWorkspaceLocationList) {
            lastUsedWorkspaceLocations.append(workspaceLocationHistoryEntry);
            lastUsedWorkspaceLocations.append(WORKSPACE_LOCATION_HISTORY_PREFERENCE_SPLIT_CHAR);
        }// w  ww  .  j a va 2s . co m
        return lastUsedWorkspaceLocations;
    }
}

Related

  1. isLastIdx(List l, int idx)
  2. isLastIndex(List list, int index)
  3. isLastIndex(List suggestedList, int i)
  4. lastIndexOf(List lines, String... conditions)
  5. lastIndexOfIdentical(List l, T element, int startingAt)
  6. removeBySwapLast(List a, Object o)
  7. removeLast(List list)
  8. removeLast(List aList)
  9. removeLast(List l)