/** * Determine the base type of array types * @return base type * @throws IllegalStateException if {@code isArray} is false. */ public Type<?> getBaseType() { checkState(isArray(), "Not an array"); return fromTag(tag, false); }
/** * Determine the array type which has this type as base type * @return array type with this type as base type * @throws IllegalStateException if {@code isArray} is true. */ public Type<?> getArrayType() { checkState(!isArray(), "Not a simply type"); return fromTag(tag, true); }
/** * Determine the array type which has this type as base type * @return array type with this type as base type * @throws IllegalStateException if {@code isArray} is true. */ public Type<?> getArrayType() { checkState(!isArray(), "Not a simply type"); return fromTag(tag, true); }
/** * Determine the base type of array types * @return base type * @throws IllegalStateException if {@code isArray} is false. */ public Type<?> getBaseType() { checkState(isArray(), "Not an array"); return fromTag(tag, false); }
/** * Determine the array type which has this type as base type * @return array type with this type as base type * @throws IllegalStateException if {@code isArray} is true. */ public Type<?> getArrayType() { checkState(!isArray(), "Not a simply type"); return fromTag(tag, true); }
/** * Determine the base type of array types * @return base type * @throws IllegalStateException if {@code isArray} is false. */ public Type<?> getBaseType() { checkState(isArray(), "Not an array"); return fromTag(tag, false); }