- 1
- 2
- 3
- 4
- 5
- 6
- 7
private static <T extends Contract> Class getClazz(T contract) {
return contract instanceof ContractLease ? ContractLease.class :
contract instanceof ContractPlantsSale ? ContractPlantsSale.class :
contract instanceof ContractForestWorks ? ContractForestWorks.class :
contract instanceof ContractPermanent ? ContractPermanent.class :
contract instanceof ContractForestDeclaration ? ContractForestDeclaration.class :
contract instanceof ContractReport ? ContractReport.class : null;
Комментарии (0) RSS
Добавить комментарий