Java AbstractMap Usage splitByQualifier(String str)

Here you can find the source of splitByQualifier(String str)

Description

split By Qualifier

License

Apache License

Declaration

public static Entry<String, String> splitByQualifier(String str) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.AbstractMap;

import java.util.Map.Entry;

public class Main {
    public static Entry<String, String> splitByQualifier(String str) {
        int i = str.lastIndexOf(':');
        String name = i == -1 ? str : str.substring(0, i).trim();
        String qualifier = i == -1 ? "" : str.substring(i + 1).trim();

        Entry<String, String> result = new AbstractMap.SimpleEntry<String, String>(name, qualifier);
        return result;
    }/*from   w  ww.  j  av  a2  s.c om*/
}

Related

  1. getSymmetricPropertyValueDifference( Properties propertyFileOne, Properties propertyFileTwo)
  2. parseEntityURI(final String uri)
  3. parseExportedVariable(String exportedVariable)
  4. parseSocketAddress(String address)
  5. parseVariableName(String variableName)
  6. splitIntSuffix(String string)
  7. splitQueryParam( String param)