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 .