{@code io.vavr.collection.Seq}, {@code io.vavr.collection.Map}, {@code io.vavr.collection.Set} - as of 2.0
*
- *
+ *
* @author Oliver Gierke
* @author Mark Paluch
* @author Maciek Opała
@@ -142,7 +143,7 @@ public abstract class QueryExecutionConverters {
/**
* Returns whether the given type is a supported wrapper type.
- *
+ *
* @param type must not be {@literal null}.
* @return
*/
@@ -173,7 +174,7 @@ public abstract class QueryExecutionConverters {
/**
* Returns the types that are supported on paginating query methods. Will include custom collection types of e.g.
* Javaslang.
- *
+ *
* @return
*/
public static Set> getAllowedPageableTypes() {
@@ -182,7 +183,7 @@ public abstract class QueryExecutionConverters {
/**
* Registers converters for wrapper types found on the classpath.
- *
+ *
* @param conversionService must not be {@literal null}.
*/
public static void registerConvertersIn(ConfigurableConversionService conversionService) {
@@ -219,7 +220,7 @@ public abstract class QueryExecutionConverters {
/**
* Unwraps the given source value in case it's one of the currently supported wrapper types detected at runtime.
- *
+ *
* @param source can be {@literal null}.
* @return
*/
@@ -255,6 +256,7 @@ public abstract class QueryExecutionConverters {
boolean needToUnwrap = type.isCollectionLike() //
|| Slice.class.isAssignableFrom(rawType) //
+ || GeoResults.class.isAssignableFrom(rawType) //
|| rawType.isArray() //
|| supports(rawType) //
|| org.springframework.data.util.ReflectionUtils.isJava8StreamType(rawType);
@@ -277,7 +279,7 @@ public abstract class QueryExecutionConverters {
/**
* Creates a new {@link AbstractWrapperTypeConverter} using the given {@link ConversionService} and wrapper type.
- *
+ *
* @param conversionService must not be {@literal null}.
* @param wrapperTypes must not be {@literal null}.
*/
@@ -292,7 +294,7 @@ public abstract class QueryExecutionConverters {
this.nullValue = nullValue;
}
- /*
+ /*
* (non-Javadoc)
* @see org.springframework.core.convert.converter.GenericConverter#getConvertibleTypes()
*/
@@ -308,7 +310,7 @@ public abstract class QueryExecutionConverters {
return Collections.unmodifiableSet(pairs);
}
- /*
+ /*
* (non-Javadoc)
* @see org.springframework.core.convert.converter.GenericConverter#convert(java.lang.Object, org.springframework.core.convert.TypeDescriptor, org.springframework.core.convert.TypeDescriptor)
*/
@@ -324,7 +326,7 @@ public abstract class QueryExecutionConverters {
/**
* Wrap the given, non-{@literal null} value into the wrapper type.
- *
+ *
* @param source will never be {@literal null}.
* @return must not be {@literal null}.
*/
@@ -333,21 +335,21 @@ public abstract class QueryExecutionConverters {
/**
* A Spring {@link Converter} to support Google Guava's {@link Optional}.
- *
+ *
* @author Oliver Gierke
*/
private static class NullableWrapperToGuavaOptionalConverter extends AbstractWrapperTypeConverter {
/**
* Creates a new {@link NullableWrapperToGuavaOptionalConverter} using the given {@link ConversionService}.
- *
+ *
* @param conversionService must not be {@literal null}.
*/
public NullableWrapperToGuavaOptionalConverter(ConversionService conversionService) {
super(conversionService, Optional.absent(), Optional.class);
}
- /*
+ /*
* (non-Javadoc)
* @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object)
*/
@@ -363,21 +365,21 @@ public abstract class QueryExecutionConverters {
/**
* A Spring {@link Converter} to support JDK 8's {@link java.util.Optional}.
- *
+ *
* @author Oliver Gierke
*/
private static class NullableWrapperToJdk8OptionalConverter extends AbstractWrapperTypeConverter {
/**
* Creates a new {@link NullableWrapperToJdk8OptionalConverter} using the given {@link ConversionService}.
- *
+ *
* @param conversionService must not be {@literal null}.
*/
public NullableWrapperToJdk8OptionalConverter(ConversionService conversionService) {
super(conversionService, java.util.Optional.empty(), java.util.Optional.class);
}
- /*
+ /*
* (non-Javadoc)
* @see org.springframework.data.repository.util.QueryExecutionConverters.AbstractWrapperTypeConverter#wrap(java.lang.Object)
*/
@@ -393,21 +395,21 @@ public abstract class QueryExecutionConverters {
/**
* A Spring {@link Converter} to support returning {@link Future} instances from repository methods.
- *
+ *
* @author Oliver Gierke
*/
private static class NullableWrapperToFutureConverter extends AbstractWrapperTypeConverter {
/**
* Creates a new {@link NullableWrapperToFutureConverter} using the given {@link ConversionService}.
- *
+ *
* @param conversionService must not be {@literal null}.
*/
public NullableWrapperToFutureConverter(ConversionService conversionService) {
super(conversionService, new AsyncResult