DATAMONGO-1860 - Polishing.

Fix type references in Javadoc. Change lambdas to method references where applicable.

Original Pull Request: #529
This commit is contained in:
Mark Paluch
2018-02-08 10:05:57 +01:00
committed by Christoph Strobl
parent 38575baec1
commit 78212948bc

View File

@@ -59,7 +59,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/**
* Creates a new {@link QuerydslMongoPredicateExecutor} for the given {@link MongoEntityInformation} and
* {@link MongoTemplate}. Uses the {@link SimpleEntityPathResolver} to create an {@link EntityPath} for the given
* {@link MongoOperations}. Uses the {@link SimpleEntityPathResolver} to create an {@link EntityPath} for the given
* domain class.
*
* @param entityInformation must not be {@literal null}.
@@ -72,7 +72,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/**
* Creates a new {@link QuerydslMongoPredicateExecutor} for the given {@link MongoEntityInformation},
* {@link MongoTemplate} and {@link EntityPathResolver}.
* {@link MongoOperations} and {@link EntityPathResolver}.
*
* @param entityInformation must not be {@literal null}.
* @param mongoOperations must not be {@literal null}.
@@ -108,7 +108,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.Predicate)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.Predicate)
*/
@Override
public List<T> findAll(Predicate predicate) {
@@ -120,7 +120,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.Predicate, com.mysema.query.types.OrderSpecifier<?>[])
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.Predicate, com.querydsl.core.types.OrderSpecifier<?>[])
*/
@Override
public List<T> findAll(Predicate predicate, OrderSpecifier<?>... orders) {
@@ -133,7 +133,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.Predicate, org.springframework.data.domain.Sort)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.Predicate, org.springframework.data.domain.Sort)
*/
@Override
public List<T> findAll(Predicate predicate, Sort sort) {
@@ -146,7 +146,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.OrderSpecifier[])
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.OrderSpecifier[])
*/
@Override
public Iterable<T> findAll(OrderSpecifier<?>... orders) {
@@ -158,7 +158,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.mysema.query.types.Predicate, org.springframework.data.domain.Pageable)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#findAll(com.querydsl.core.types.Predicate, org.springframework.data.domain.Pageable)
*/
@Override
public Page<T> findAll(Predicate predicate, Pageable pageable) {
@@ -173,7 +173,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#count(com.mysema.query.types.Predicate)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#count(com.querydsl.core.types.Predicate)
*/
@Override
public long count(Predicate predicate) {
@@ -185,7 +185,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
/*
* (non-Javadoc)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#exists(com.mysema.query.types.Predicate)
* @see org.springframework.data.querydsl.QueryDslPredicateExecutor#exists(com.querydsl.core.types.Predicate)
*/
@Override
public boolean exists(Predicate predicate) {
@@ -196,7 +196,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
}
/**
* Creates a {@link MongodbQuery} for the given {@link Predicate}.
* Creates a {@link AbstractMongodbQuery} for the given {@link Predicate}.
*
* @param predicate
* @return
@@ -206,12 +206,12 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
}
/**
* Creates a {@link MongodbQuery}.
* Creates a {@link AbstractMongodbQuery}.
*
* @return
*/
private AbstractMongodbQuery<T, SpringDataMongodbQuery<T>> createQuery() {
return new SpringDataMongodbQuery<T>(mongoOperations, entityInformation.getJavaType());
return new SpringDataMongodbQuery<>(mongoOperations, entityInformation.getJavaType());
}
/**
@@ -247,7 +247,7 @@ public class QuerydslMongoPredicateExecutor<T> implements QuerydslPredicateExecu
return query;
}
sort.stream().map(this::toOrder).forEach(it -> query.orderBy(it));
sort.stream().map(this::toOrder).forEach(query::orderBy);
return query;
}