src/main/java/com/arpnetworking/steno/Logger.java
static @Nullable Object[] createValuesFromCollection(
            @Nullable final Collection<Object> collection,
            @Nullable final Object... values) {
        if (isNullOrEmpty(values)) {
            return collection == null ? null : collection.toArray(new Object[collection.size()]);
        }
        if (isNullOrEmpty(collection)) {
            return values;
        }
        final Object[] combined = new Object[collection.size() + values.length];
        for (int i = 0; i < values.length; ++i) {
            combined[i] = values[i];
        }
        int i = 0;
        for (final Object item : collection) {
            combined[values.length + i++] = item;
        }
        return combined;
    }
static @Nullable Object[] createValuesFromCollection(
            @Nullable final Collection<Object> collection,
            @Nullable final Object... values) {
        if (isNullOrEmpty(values)) {
            return collection == null ? null : collection.toArray(new Object[collection.size()]);
        }
        if (isNullOrEmpty(collection)) {
            return values;
        }
        final Object[] combined = new Object[collection.size() + values.length];
        for (int i = 0; i < values.length; ++i) {
            combined[i] = values[i];
        }
        int i = 0;
        for (final Object item : collection) {
            combined[values.length + i++] = item;
        }
        return combined;
    }
static @ Nullable Object [ ] createValuesFromCollection ( @ Nullable final Collection < Object > collection , @ Nullable final Object ... values ) { if ( isNullOrEmpty ( values ) ) { return collection == null ? null : collection . toArray ( new Object [ collection . size ( ) ] ) ; } if ( isNullOrEmpty ( collection ) ) { return values ; } final Object [ ] combined = new Object [ collection . size ( ) + values . length ] ; for ( int i = 0 ; i < values . length ; ++ i ) { combined [ i ] = values [ i ] ; } int i = 0 ; for ( final Object item : collection ) { combined [ values . length + i ++ ] = item ; } return combined ; }
/* package private
/ * package private