Browse Source

DATACMNS-1140 - Polishing.

Extend javadoc. Remove trailing whitespaces.

Original pull request: #238.
pull/239/head
Mark Paluch 9 years ago
parent
commit
e4e677d6b1
  1. 12
      src/main/java/org/springframework/data/domain/ExampleMatcher.java
  2. 1
      src/main/java/org/springframework/data/domain/TypedExampleMatcher.java

12
src/main/java/org/springframework/data/domain/ExampleMatcher.java

@ -48,8 +48,8 @@ import org.springframework.util.Assert;
public interface ExampleMatcher { public interface ExampleMatcher {
/** /**
* Create a new {@link ExampleMatcher} including all non-null properties by default exposing that all resulting * Create a new {@link ExampleMatcher} including all non-null properties by default matching <strong>all</strong>
* predicates are supposed to be AND-concatenated. * predicates derived from the example.
* *
* @return new instance of {@link ExampleMatcher}. * @return new instance of {@link ExampleMatcher}.
* @see #matchingAll() * @see #matchingAll()
@ -232,7 +232,7 @@ public interface ExampleMatcher {
/** /**
* Returns whether all of the predicates of the {@link Example} are supposed to match. If {@literal false} is * Returns whether all of the predicates of the {@link Example} are supposed to match. If {@literal false} is
* returned, it's sufficient if any of the predicates derived from the {@link Example} match. * returned, it's sufficient if any of the predicates derived from the {@link Example} match.
* *
* @return whether all of the predicates of the {@link Example} are supposed to match or any of them is sufficient. * @return whether all of the predicates of the {@link Example} are supposed to match or any of them is sufficient.
*/ */
default boolean isAllMatching() { default boolean isAllMatching() {
@ -242,7 +242,7 @@ public interface ExampleMatcher {
/** /**
* Returns whether it's sufficient that any of the predicates of the {@link Example} match. If {@literal false} is * Returns whether it's sufficient that any of the predicates of the {@link Example} match. If {@literal false} is
* returned, all predicates derived from the example need to match to produce results. * returned, all predicates derived from the example need to match to produce results.
* *
* @return whether it's sufficient that any of the predicates of the {@link Example} match or all need to match. * @return whether it's sufficient that any of the predicates of the {@link Example} match or all need to match.
*/ */
default boolean isAnyMatching() { default boolean isAnyMatching() {
@ -564,7 +564,7 @@ public interface ExampleMatcher {
/** /**
* For backwards compatibility of clients used to invoke Spring's Converter interface. * For backwards compatibility of clients used to invoke Spring's Converter interface.
* *
* @param source * @param source
* @return * @return
*/ */
@ -583,7 +583,7 @@ public interface ExampleMatcher {
INSTANCE; INSTANCE;
/* /*
* (non-Javadoc) * (non-Javadoc)
* @see java.util.function.Function#apply(java.lang.Object) * @see java.util.function.Function#apply(java.lang.Object)
*/ */

1
src/main/java/org/springframework/data/domain/TypedExampleMatcher.java

@ -13,7 +13,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.springframework.data.domain; package org.springframework.data.domain;
import lombok.AccessLevel; import lombok.AccessLevel;

Loading…
Cancel
Save