public static void assertContinuationType(final ResultContinuation continuationToken,
            final ResultContinuationType continuationType) {
        if (continuationToken != null) {
            if (!(continuationToken.getContinuationType() == ResultContinuationType.NONE || continuationToken
                    .getContinuationType() == continuationType)) {
                final String errorMessage = String.format(Utility.LOCALE_US, SR.UNEXPECTED_CONTINUATION_TYPE,
                        continuationToken.getContinuationType(), continuationType);
                throw new IllegalArgumentException(errorMessage);
            }
        }
    }
public static void assertContinuationType(final ResultContinuation continuationToken,
            final ResultContinuationType continuationType) {
        if (continuationToken != null) {
            if (!(continuationToken.getContinuationType() == ResultContinuationType.NONE || continuationToken
                    .getContinuationType() == continuationType)) {
                final String errorMessage = String.format(Utility.LOCALE_US, SR.UNEXPECTED_CONTINUATION_TYPE,
                        continuationToken.getContinuationType(), continuationType);
                throw new IllegalArgumentException(errorMessage);
            }
        }
    }
public static void assertContinuationType ( final ResultContinuation continuationToken , final ResultContinuationType continuationType ) { if ( continuationToken != null ) { if ( ! ( continuationToken . getContinuationType ( ) == ResultContinuationType . NONE || continuationToken . getContinuationType ( ) == continuationType ) ) { final String errorMessage = String . format ( Utility . LOCALE_US , SR . UNEXPECTED_CONTINUATION_TYPE , continuationToken . getContinuationType ( ) , continuationType ) ; throw new IllegalArgumentException ( errorMessage ) ; } } }
Asserts a continuation token is of the specified type.

@param continuationToken
A {@link ResultContinuation} object that represents the continuation token whose type is being
examined.
@param continuationType
A {@link ResultContinuationType} value that represents the continuation token type being asserted with
the specified continuation token.
Asserts a continuation token is of the specified type .