@Override @Nullable public <T> ID findBuildByBranchAndSearchkey(ID branchId, Class<? extends PropertyType<T>> propertyType, String searchKey) { // Gets the property type by name PropertyType<T> actualPropertyType = getPropertyTypeByName(propertyType.getName()); // Gets the search arguments PropertySearchArguments searchArguments = actualPropertyType.getSearchArguments(searchKey); if (searchArguments != null) { return propertyRepository.findBuildByBranchAndSearchkey(branchId, propertyType.getName(), searchArguments); } else { return null; } }
PropertySearchArguments searchArguments = propertyType.getSearchArguments(propertyValue);
PropertySearchArguments searchArguments = propertyType.getSearchArguments(withPropertyValue);