public class FieldUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Tag<?>> |
checkTagCast(Tag<?> tag,
Class<T> type)
Checks that a tag is not null and of the required type
|
public static <T extends Tag<?>> T checkTagCast(Tag<?> tag, Class<T> type) throws IllegalArgumentException
T - The type parameter of typetag - The tag to checktype - The type of tag requiredIllegalArgumentException - if the tag is null or not of the required typeCopyright © 2011–2014 Flow Powered. All rights reserved.