src/main/java/io/reactivex/processors/AsyncProcessor.java
@Deprecated
    public T[] getValues(T[] array) {
        T v = getValue();
        if (v == null) {
            if (array.length != 0) {
                array[0] = null;
            }
            return array;
        }
        if (array.length == 0) {
            array = Arrays.copyOf(array, 1);
        }
        array[0] = v;
        if (array.length != 1) {
            array[1] = null;
        }
        return array;
    }
@Deprecated
    public T[] getValues(T[] array) {
        T v = getValue();
        if (v == null) {
            if (array.length != 0) {
                array[0] = null;
            }
            return array;
        }
        if (array.length == 0) {
            array = Arrays.copyOf(array, 1);
        }
        array[0] = v;
        if (array.length != 1) {
            array[1] = null;
        }
        return array;
    }
@ Deprecated public T [ ] getValues ( T [ ] array ) { T v = getValue ( ) ; if ( v == null ) { if ( array . length != 0 ) { array [ 0 ] = null ; } return array ; } if ( array . length == 0 ) { array = Arrays . copyOf ( array , 1 ) ; } array [ 0 ] = v ; if ( array . length != 1 ) { array [ 1 ] = null ; } return array ; }
Returns a typed array containing a snapshot of all values of this processor.
<p>The method follows the conventions of Collection.toArray by setting the array element
after the last value to null (if the capacity permits).
<p>The method is thread-safe.
@param array the target array to copy values into if it fits
@return the given array if the values fit into it or a new array containing all values
@deprecated in 2.1.14; put the result of {@link #getValue()} into an array manually, will be removed in 3.x
Returns a typed array containing a snapshot of all values of this processor . <p > The method follows the conventions of Collection . toArray by setting the array element after the last value to null ( if the capacity permits ) . <p > The method is thread - safe .