io.github.yeyuexia.merge.helper.Helper Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of merge Show documentation
Show all versions of merge Show documentation
An easy way to merge one bean into another bean.
package io.github.yeyuexia.merge.helper;
public final class Helper {
public static String getPath(String path, String name) {
return "".equals(path) ? name : String.format("%s.%s", path, name);
}
public static String getCollectionPath(String path, String index) {
return "".equals(path) ? String.format("{%s}", index) : String.format("%s{%s}", path, index);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy