@Override public EitherSerializer<L, R> restoreSerializer() { checkState(nestedSnapshot != null); return new EitherSerializer<>( nestedSnapshot.getRestoredNestedSerializer(0), nestedSnapshot.getRestoredNestedSerializer(1)); }
@Override public GenericArraySerializer<C> restoreSerializer() { checkState(componentClass != null && nestedSnapshot != null); return new GenericArraySerializer<>(componentClass, nestedSnapshot.getRestoredNestedSerializer(0)); }