/** * Tests whether v remains the same when encoded and decoded with the current encoder. * * @throws IllegalStateException * if an encoder has not been set. * @throws IllegalArgumentException * if the test fails. */ protected void testEncoder(V v) { if (encoder == null) throw new IllegalStateException("encoder has not been initialized"); testEncoder(encoder, v); }
/** * Tests whether v remains the same when encoded and decoded with the current encoder. * * @throws IllegalStateException * if an encoder has not been set. * @throws IllegalArgumentException * if the test fails. */ protected void testEncoder(V v) { if (encoder == null) throw new IllegalStateException("encoder has not been initialized"); testEncoder(encoder, v); }