/** * Get the required {@link KeyValueAdapter} used or throw {@link IllegalStateException} if the adapter is not set. * * @return the required {@link KeyValueAdapter}. * @throws IllegalStateException if the adapter is not set. */ protected ADAPTER getRequiredAdapter() { ADAPTER adapter = getAdapter(); if (adapter != null) { return adapter; } throw new IllegalStateException("Required KeyValueAdapter is not set!"); }
/** * Get the required {@link KeyValueAdapter} used or throw {@link IllegalStateException} if the adapter is not set. * * @return the required {@link KeyValueAdapter}. * @throws IllegalStateException if the adapter is not set. */ protected ADAPTER getRequiredAdapter() { ADAPTER adapter = getAdapter(); if (adapter != null) { return adapter; } throw new IllegalStateException("Required KeyValueAdapter is not set!"); }
/** * Get the required {@link KeyValueAdapter} used or throw {@link IllegalStateException} if the adapter is not set. * * @return the required {@link KeyValueAdapter}. * @throws IllegalStateException if the adapter is not set. */ protected ADAPTER getRequiredAdapter() { ADAPTER adapter = getAdapter(); if (adapter != null) { return adapter; } throw new IllegalStateException("Required KeyValueAdapter is not set!"); }