Throws a suitable RuntimeException if the specified element is illegal. Typically this is either a NullPointerException, an IllegalArgumentException, or a ClassCastException, though an application-specific exception class may be used if appropriate. @param element th
(E element)
| 53 | * @return the provided element |
| 54 | */ |
| 55 | @CanIgnoreReturnValue |
| 56 | E checkElement(E element); |
| 57 | |
| 58 | /** |