We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24790f3 commit 537fc20Copy full SHA for 537fc20
src/main/java/org/scijava/util/ArrayUtils.java
@@ -79,6 +79,12 @@ private ArrayUtils() {
79
80
// -- ArrayUtils methods --
81
82
+ /** Creates an array of the given type, containing the specified values. */
83
+ @SafeVarargs
84
+ public static <T> T[] array(final T... values) {
85
+ return values;
86
+ }
87
+
88
/**
89
* Converts the provided Object to a {@link Collection} implementation. If the
90
* object is an array type, a {@link PrimitiveArray} wrapper will be created.
0 commit comments