/** * Creates a wrapper for the given array * * @param array the array to wrap * @return a wrapped instance of the given array */ @Nonnull public static Values of(@Nonnull Object[] array) { Objects.requireNonNull(array); Values result = new Values(); result.dataArray = array; return result; }
/** * Creates a wrapper for the given list * * @param list the list to wrap * @return a wrapped instance of the given list */ @Nonnull public static Values of(@Nonnull List<?> list) { Objects.requireNonNull(list); Values result = new Values(); result.dataList = list; return result; }