MCPcopy Create free account
hub / github.com/Card-Forge/forge / joinHomogenous

Method joinHomogenous

forge-core/src/main/java/forge/util/Lang.java:78–82  ·  view source on GitHub ↗
(final String s1, final String s2)

Source from the content-addressed store, hash-verified

76 public abstract String getOrdinal(final int position);
77
78 public static String joinHomogenous(final String s1, final String s2) {
79 final boolean has1 = StringUtils.isNotBlank(s1);
80 final boolean has2 = StringUtils.isNotBlank(s2);
81 return has1 ? (has2 ? s1 + " and " + s2 : s1) : (has2 ? s2 : "");
82 }
83
84 public static <T> String joinHomogenous(final Iterable<T> objects) {
85 return joinHomogenous(Lists.newArrayList(objects));

Callers 15

visitMethod · 0.95
millMethod · 0.95
getDetailsListMethod · 0.95
getNonAbilityTextMethod · 0.95
getAbilityTextMethod · 0.95
addTriggerAbilityMethod · 0.95
getTitleCostMethod · 0.95
costReminderTextMethod · 0.95
tokenizeStringMethod · 0.95

Calls 4

sizeMethod · 0.65
applyMethod · 0.65
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected