Package org.apache.commons.collections.map

Examples of org.apache.commons.collections.map.CaseInsensitiveMap


   */
  private static abstract class CommonsCollectionFactory {

    private static Map createListOrderedCaseInsensitiveMap(int initialCapacity) {
      // Commons Collections does not support initial capacity of 0.
      return ListOrderedMap.decorate(new CaseInsensitiveMap(initialCapacity == 0 ? 1 : initialCapacity));
    }
View Full Code Here


   */
  private static abstract class CommonsCollectionFactory {

    private static Map createListOrderedCaseInsensitiveMap(int initialCapacity) {
      // Commons Collections does not support initial capacity of 0.
      return ListOrderedMap.decorate(new CaseInsensitiveMap(initialCapacity == 0 ? 1 : initialCapacity));
    }
View Full Code Here

      return new LinkedMap(initialCapacity == 0 ? 1 : initialCapacity);
    }

    private static Map createListOrderedCaseInsensitiveMap(int initialCapacity) {
      // Commons Collections does not support initial capacity of 0.
      return ListOrderedMap.decorate(new CaseInsensitiveMap(initialCapacity == 0 ? 1 : initialCapacity));
    }
View Full Code Here

        // Create a case insensitive version of issueLinkTemplatePerSystem
        // We need something case insensitive to maintain backward compatibility
        if ( issueLinkTemplatePerSystem == null )
        {
            caseInsensitiveIssueLinkTemplatePerSystem = new CaseInsensitiveMap();
        }
        else
        {
            caseInsensitiveIssueLinkTemplatePerSystem = new CaseInsensitiveMap( issueLinkTemplatePerSystem );
        }

        // Set good default values for issue management systems here, but only
        // if they have not been configured already by the user
        addIssueLinkTemplate( ChangesReportGenerator.DEFAULT_ISSUE_SYSTEM_KEY, issueLinkTemplate );
View Full Code Here

     */
    private void addIssueLinkTemplate( String system, String issueLinkTemplate )
    {
        if ( caseInsensitiveIssueLinkTemplatePerSystem == null )
        {
            caseInsensitiveIssueLinkTemplatePerSystem = new CaseInsensitiveMap();
        }
        if ( !caseInsensitiveIssueLinkTemplatePerSystem.containsKey( system ) )
        {
            caseInsensitiveIssueLinkTemplatePerSystem.put( system, issueLinkTemplate );
        }
View Full Code Here

   */
  public static String createJarWithClassPath(String inputClassPath, Path pwd,
      Map<String, String> callerEnv) throws IOException {
    // Replace environment variables, case-insensitive on Windows
    @SuppressWarnings("unchecked")
    Map<String, String> env = Shell.WINDOWS ? new CaseInsensitiveMap(callerEnv) :
      callerEnv;
    String[] classPathEntries = inputClassPath.split(File.pathSeparator);
    for (int i = 0; i < classPathEntries.length; ++i) {
      classPathEntries[i] = StringUtils.replaceTokens(classPathEntries[i],
        StringUtils.ENV_VAR_PATTERN, env);
View Full Code Here

public class CaseInsensitiveMapTransformer {

  public Object transform(Object object) {
    @SuppressWarnings("unchecked")
    Map<String, ?> m = (Map<String, ?>) object;
    return new CaseInsensitiveMap(m);
  }
View Full Code Here

        + tableSequence.getTableName();
    List<Map<String, Object>> rs = queryForList(countSql);
    long max = 0;
    if (!rs.isEmpty()) {
      @SuppressWarnings("unchecked")
      Map<String, Number> maxNum = new CaseInsensitiveMap(rs.get(0));
      max = maxNum.get("maxid").longValue();
    }
    long repaired = 0;
    String updateIncrease = null;
    if (max > current) {
      if (max - current > 1) {
View Full Code Here

  public List<String> getAllNames() {
    String sql = "select sequence_name from user_sequences order by sequence_name";
    List<Map<String, Object>> seqs = queryForList(sql);
    List<String> sequenceNames = CollectUtils.newArrayList(seqs.size());
    for (Map<String, Object> seq : seqs) {
      String name = (String) new CaseInsensitiveMap(seq).get("sequence_name");
      if (null == name) continue;
      sequenceNames.add(name);
    }
    return sequenceNames;
  }
View Full Code Here

   */
  public static String createJarWithClassPath(String inputClassPath, Path pwd,
      Map<String, String> callerEnv) throws IOException {
    // Replace environment variables, case-insensitive on Windows
    @SuppressWarnings("unchecked")
    Map<String, String> env = Shell.WINDOWS ? new CaseInsensitiveMap(callerEnv) :
      callerEnv;
    String[] classPathEntries = inputClassPath.split(File.pathSeparator);
    for (int i = 0; i < classPathEntries.length; ++i) {
      classPathEntries[i] = StringUtils.replaceTokens(classPathEntries[i],
        StringUtils.ENV_VAR_PATTERN, env);
View Full Code Here

TOP

Related Classes of org.apache.commons.collections.map.CaseInsensitiveMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.