SGF-402 - Polish.
(cherry picked from commit 479bc4e3253425b60d01d1ee4b346d971db3a9e9) Signed-off-by: John Blum <jblum@pivotal.io>
This commit is contained in:
@@ -197,7 +197,7 @@ public class Interest<K> implements InitializingBean {
|
||||
* using {@link Pattern#compile(String)}, then the {@code key} is considered a Regular Expression
|
||||
* and interest will be registered using {@link org.apache.geode.cache.Region#registerInterestRegex(String)}.
|
||||
*
|
||||
* @param key {@link String} to evaluate.
|
||||
* @param value {@link String} to evaluate.
|
||||
* @return a boolean value indicating whether the given {@link String} {@code value} is a Regular Expression.
|
||||
* @see #containsNonAlphaNumericWhitespace(String)
|
||||
* @see java.util.regex.Pattern#compile(String)
|
||||
|
||||
@@ -17,7 +17,8 @@
|
||||
|
||||
package org.springframework.data.gemfire.domain;
|
||||
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.springframework.data.domain.Page;
|
||||
|
||||
/**
|
||||
@@ -56,7 +57,7 @@ public final class EmptyPage<T> extends EmptySlice<T> implements Page<T> {
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public <S> Page<S> map(Converter<? super T, ? extends S> converter) {
|
||||
public <S> Page<S> map(Function<? super T, ? extends S> converter) {
|
||||
return (Page<S>) EMPTY_PAGE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,8 +19,8 @@ package org.springframework.data.gemfire.domain;
|
||||
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.function.Function;
|
||||
|
||||
import org.springframework.core.convert.converter.Converter;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.data.domain.Slice;
|
||||
import org.springframework.data.domain.Sort;
|
||||
@@ -104,7 +104,7 @@ public abstract class EmptySlice<T> extends AbstractSliceSupport<T> {
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public <S> Slice<S> map(Converter<? super T, ? extends S> converter) {
|
||||
public <S> Slice<S> map(Function<? super T, ? extends S> converter) {
|
||||
return (Slice<S>) EMPTY_SLICE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -35,6 +35,7 @@ import org.springframework.data.gemfire.config.xml.GemfireConstants;
|
||||
* persistent entity will be stored.
|
||||
*
|
||||
* @author John Blum
|
||||
* @see org.springframework.data.gemfire.config.annotation.EnableEntityDefinedRegions
|
||||
* @see org.springframework.data.gemfire.config.annotation.EntityDefinedRegionsConfiguration
|
||||
* @see org.springframework.data.gemfire.mapping.annotation.Region
|
||||
* @since 1.9.0
|
||||
@@ -92,8 +93,6 @@ public @interface ClientRegion {
|
||||
* Determines whether an entity annotated with this Region annotation will ignore any existing Region definition
|
||||
* identified by the given {@link #name()} for this entity.
|
||||
*
|
||||
* Overrides the global, {@link EnableEntityDefinedRegions#ignoreIfExists()} setting.
|
||||
*
|
||||
* Defaults to {@literal true}.
|
||||
*/
|
||||
boolean ignoreIfExists() default true;
|
||||
|
||||
@@ -26,13 +26,13 @@ import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import org.springframework.core.annotation.AliasFor;
|
||||
import org.springframework.data.gemfire.config.annotation.EnableEntityDefinedRegions;
|
||||
|
||||
/**
|
||||
* {@link Annotation} defining the Local {@link Region} in which the application persistent entity will be stored.
|
||||
*
|
||||
* @author John Blum
|
||||
* @see org.springframework.data.gemfire.config.annotation.EnableEntityDefinedRegions
|
||||
* @see org.springframework.data.gemfire.config.annotation.EntityDefinedRegionsConfiguration
|
||||
* @see org.springframework.data.gemfire.mapping.annotation.Region
|
||||
* @since 1.9.0
|
||||
*/
|
||||
@@ -89,8 +89,6 @@ public @interface LocalRegion {
|
||||
* Determines whether an entity annotated with this Region annotation will ignore any existing Region definition
|
||||
* identified by the given {@link #name()} for this entity.
|
||||
*
|
||||
* Overrides the global, {@link EnableEntityDefinedRegions#ignoreIfExists()} setting.
|
||||
*
|
||||
* Defaults to {@literal true}.
|
||||
*/
|
||||
boolean ignoreIfExists() default true;
|
||||
|
||||
@@ -31,6 +31,7 @@ import org.springframework.core.annotation.AliasFor;
|
||||
* {@link Annotation} defining the Partition {@link Region} in which the application persistent entity will be stored.
|
||||
*
|
||||
* @author John Blum
|
||||
* @see org.springframework.data.gemfire.config.annotation.EnableEntityDefinedRegions
|
||||
* @see org.springframework.data.gemfire.config.annotation.EntityDefinedRegionsConfiguration
|
||||
* @see org.springframework.data.gemfire.mapping.annotation.Region
|
||||
* @since 1.9.0
|
||||
@@ -110,8 +111,6 @@ public @interface PartitionRegion {
|
||||
* Determines whether an entity annotated with this Region annotation will ignore any existing Region definition
|
||||
* identified by the given {@link #name()} for this entity.
|
||||
*
|
||||
* Overrides the global, {@link EnableEntityDefinedRegions#ignoreIfExists()} setting.
|
||||
*
|
||||
* Defaults to {@literal true}.
|
||||
*/
|
||||
boolean ignoreIfExists() default true;
|
||||
|
||||
@@ -75,8 +75,6 @@ public @interface Region {
|
||||
* Determines whether an entity annotated with this Region annotation will ignore any existing Region definition
|
||||
* identified by the given {@link #name()} for this entity.
|
||||
*
|
||||
* Overrides the global, {@link EnableEntityDefinedRegions#ignoreIfExists()} setting.
|
||||
*
|
||||
* Defaults to {@literal true}.
|
||||
*/
|
||||
boolean ignoreIfExists() default true;
|
||||
|
||||
@@ -32,6 +32,7 @@ import org.springframework.data.gemfire.ScopeType;
|
||||
* {@link Annotation} defining the Replicate {@link Region} in which the application persistent entity will be stored.
|
||||
*
|
||||
* @author John Blum
|
||||
* @see org.springframework.data.gemfire.config.annotation.EnableEntityDefinedRegions
|
||||
* @see org.springframework.data.gemfire.config.annotation.EntityDefinedRegionsConfiguration
|
||||
* @see org.springframework.data.gemfire.mapping.annotation.Region
|
||||
* @since 1.9.0
|
||||
@@ -89,8 +90,6 @@ public @interface ReplicateRegion {
|
||||
* Determines whether an entity annotated with this Region annotation will ignore any existing Region definition
|
||||
* identified by the given {@link #name()} for this entity.
|
||||
*
|
||||
* Overrides the global, {@link EnableEntityDefinedRegions#ignoreIfExists()} setting.
|
||||
*
|
||||
* Defaults to {@literal true}.
|
||||
*/
|
||||
boolean ignoreIfExists() default true;
|
||||
|
||||
@@ -134,7 +134,7 @@ public abstract class LuceneAccessor extends LuceneOperationsSupport implements
|
||||
/**
|
||||
* Creates an instance of the {@link LuceneQueryFactory} to create and execute {@link LuceneQuery Lucene queries}.
|
||||
*
|
||||
* @param projectionFields {@link String[]} containing the fields of the object to project.
|
||||
* @param projectionFields {@link String} array containing the fields of the object to project.
|
||||
* @return an instance of the {@link LuceneQueryFactory} to create and execute {@link LuceneQuery Lucene queries}.
|
||||
* @see org.apache.geode.cache.lucene.LuceneQueryFactory
|
||||
* @see #createLuceneQueryFactory(int, int, String...)
|
||||
@@ -147,7 +147,7 @@ public abstract class LuceneAccessor extends LuceneOperationsSupport implements
|
||||
* Creates an instance of the {@link LuceneQueryFactory} to create and execute {@link LuceneQuery Lucene queries}.
|
||||
*
|
||||
* @param resultLimit limit to the number of results returned by the query.
|
||||
* @param projectionFields {@link String[]} containing the fields of the object to project.
|
||||
* @param projectionFields {@link String} array containing the fields of the object to project.
|
||||
* @return an instance of the {@link LuceneQueryFactory} to create and execute {@link LuceneQuery Lucene queries}.
|
||||
* @see org.apache.geode.cache.lucene.LuceneQueryFactory
|
||||
* @see #createLuceneQueryFactory(int, int, String...)
|
||||
@@ -161,7 +161,7 @@ public abstract class LuceneAccessor extends LuceneOperationsSupport implements
|
||||
*
|
||||
* @param resultLimit limit to the number of results returned by the query.
|
||||
* @param pageSize number of results appearing on a single page.
|
||||
* @param projectionFields {@link String[]} containing the fields of the object to project.
|
||||
* @param projectionFields {@link String} array containing the fields of the object to project.
|
||||
* @return an instance of the {@link LuceneQueryFactory} to create and execute {@link LuceneQuery Lucene queries}.
|
||||
* @see #createLuceneQueryFactory()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user