Esri Geoportal Server
1.2.9

com.esri.gpt.control.webharvest.extensions.localfolder
Class StringListUtil

java.lang.Object
  extended by com.esri.gpt.control.webharvest.extensions.localfolder.StringListUtil

public class StringListUtil
extends Object

Utilities to handle list of strings

Author:
Esri, Inc.

Constructor Summary
StringListUtil()
           
 
Method Summary
static List<String> head(List<String> lst, int to)
          Gets head of the list.
static List<String> merge(List<String> lst1, List<String> lst2)
          Joins two lists in such a way that common end of the first list and common start with the second list are merged.
static List<String> tail(List<String> lst, int from)
          Gets tail of the list
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringListUtil

public StringListUtil()
Method Detail

head

public static List<String> head(List<String> lst,
                                int to)
Gets head of the list.

Parameters:
lst - source list
to - end index
Returns:
head

tail

public static List<String> tail(List<String> lst,
                                int from)
Gets tail of the list

Parameters:
lst - source list
from - start index
Returns:

merge

public static List<String> merge(List<String> lst1,
                                 List<String> lst2)
Joins two lists in such a way that common end of the first list and common start with the second list are merged.

Parameters:
lst1 - first list
lst2 - second list
Returns:
merged list

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.