| | |
| | | package com.zy.acs.manager.core.domain; |
| | | |
| | | import com.zy.acs.common.utils.GsonUtils; |
| | | import com.zy.acs.framework.common.Cools; |
| | | import lombok.Data; |
| | | |
| | | import java.util.ArrayList; |
| | |
| | | return Objects.hash(vehicle); |
| | | } |
| | | |
| | | public static boolean customContain(List<BlockVehicleDto> list, String vehicle) { |
| | | if (Cools.isEmpty(list, vehicle)) { |
| | | return false; |
| | | } |
| | | for (BlockVehicleDto dto : list) { |
| | | if (dto.getVehicle().equals(vehicle)) { |
| | | return true; |
| | | } |
| | | } |
| | | return false; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | List<BlockVehicleDto> blockVehicleList = new ArrayList<>(); |
| | | blockVehicleList.add(new BlockVehicleDto("1", true)); |