MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / containsSuffix

Method containsSuffix

src/main/java/field/utility/Dict.java:136–144  ·  view source on GitHub ↗
(String string)

Source from the content-addressed store, hash-verified

134 }
135
136 public boolean containsSuffix(String string) {
137 if (name.contains("_")) {
138 String[] s = name.split("_");
139 for (int i = 1; i < s.length; i++) {
140 if (s[i].equals(string)) return true;
141 }
142 }
143 return false;
144 }
145
146 @Override
147 public boolean equals(Object obj) {

Callers

nothing calls this directly

Calls 3

containsMethod · 0.45
splitMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected