Identify if the set of types contains any forbidden ones. @param types the types to be checked @return true if any type is not allowed, false otherwise
(Collection<Type> types)
| 135 | * @return true if any type is not allowed, false otherwise |
| 136 | */ |
| 137 | public boolean isForbidden(Collection<Type> types) |
| 138 | { |
| 139 | for (Type type : types) |
| 140 | { |
| 141 | if (forbiddenTypes.contains(type)) |
| 142 | { |
| 143 | return true; |
| 144 | } |
| 145 | } |
| 146 | return false; |
| 147 | } |
| 148 | } |