ビットマップからすべてのキー (または反転) を取得し、それぞれを特殊文字と完全に新しい文字列として連結するのに相当するものはありますか (マップを反復して手動で構築する必要はありませんか?
private static final BiMap<String, String> stuff = HashBiMap.create();
static {
stuff.put("S1", "STUFF_TYPE_1");
stuff.put("S2", "STUFF_TYPE_2");
stuff.put("S3", "STUFF_TYPE_3");
}
// The non-terminal <> is what I'm asking if something like exists either with bimap or some other container?
private static final String concateKeys = <stuff.getAllKeys().assignDelimiter("|").toString();>
次に、concateKeys の値 = "S1|S2|S3"