src/main/java/io/reactivex/subjects/BehaviorSubject.java
@Deprecated
    public Object[] getValues() {
        @SuppressWarnings("unchecked")
        T[] a = (T[])EMPTY_ARRAY;
        T[] b = getValues(a);
        if (b == EMPTY_ARRAY) {
            return new Object[0];
        }
        return b;

    }
@Deprecated
    public Object[] getValues() {
        @SuppressWarnings("unchecked")
        T[] a = (T[])EMPTY_ARRAY;
        T[] b = getValues(a);
        if (b == EMPTY_ARRAY) {
            return new Object[0];
        }
        return b;

    }
@ Deprecated public Object [ ] getValues ( ) { @ SuppressWarnings ( "unchecked" ) T [ ] a = ( T [ ] ) EMPTY_ARRAY ; T [ ] b = getValues ( a ) ; if ( b == EMPTY_ARRAY ) { return new Object [ 0 ] ; } return b ; }
Returns an Object array containing snapshot all values of the Subject.
<p>The method is thread-safe.
@return the array containing the snapshot of all values of the Subject
@deprecated in 2.1.14; put the result of {@link #getValue()} into an array manually, will be removed in 3.x
Returns an Object array containing snapshot all values of the Subject . <p > The method is thread - safe .