Here you can find the source of splitByQualifier(String str)
public static Entry<String, String> splitByQualifier(String str)
//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*/ }