- Somewhat more explicit method name.

This commit is contained in:
Agetian
2018-04-16 22:18:33 +03:00
parent 2c9b23fc6d
commit ae05e58a13
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ public class Cost implements Serializable {
return true;
}
public <T extends CostPart> T getCostPart(Class<T> costType) {
public <T extends CostPart> T getCostPartByType(Class<T> costType) {
for (CostPart p : getCostParts()) {
if (costType.isInstance(p)) {
return (T)p;