Skip to content

Commit 75bec13

Browse files
committed
changing @JavaDoc
1 parent 7991c2f commit 75bec13

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

core/src/main/java/fj/function/Booleans.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public static boolean and(final List<Boolean> l) {
8585
}
8686

8787
/**
88-
* maps function on given predicate function
88+
* maps given function to the predicate function
8989
* @param p predicate to be mapped over
9090
* @param f function
9191
* @return predicate function
@@ -95,7 +95,7 @@ public static <A, B> F<B, Boolean> contramap(F<B, A> f, F<A, Boolean> p){
9595
}
9696

9797
/**
98-
* checks if given predicate does not hold for given function
98+
* returns inverse of contramap
9999
* @param p predicate to be mapped over
100100
* @param f function
101101
* @return predicate function
@@ -105,7 +105,7 @@ public static <A, B> F<B, Boolean> isnot(F<B, A> f, F<A, Boolean> p){
105105
}
106106

107107
/**
108-
* composes given predicates using conjunction
108+
* composes the given predicate using conjunction
109109
* @param p1 first predicate
110110
* @param p2 second predicate
111111
* @return composed predicate function
@@ -115,7 +115,7 @@ public static <A> F<A, Boolean> and(F<A, Boolean> p1, F<A, Boolean> p2){
115115
}
116116

117117
/**
118-
* composes given predicates using exclusive disjunction
118+
* composes the given predicate using exclusive disjunction
119119
* @param p1 first predicate
120120
* @param p2 second predicate
121121
* @return composed predicate function
@@ -125,10 +125,10 @@ public static <A> F<A, Boolean> xor(F<A, Boolean> p1, F<A, Boolean> p2){
125125
}
126126

127127
/**
128-
* returns composes given predicates using disjunction
128+
* returns composed predicate using disjunction
129129
* @param p1 first predicate
130130
* @param p2 second predicate
131-
* @return composed predicate function
131+
* @return composed predicate
132132
*/
133133
public static <A> F<A, Boolean> or(F<A, Boolean> p1, F<A, Boolean> p2){
134134
return Semigroup.<A, Boolean>functionSemigroup(disjunctionSemigroup).sum(p1, p2);
@@ -145,10 +145,10 @@ public static boolean and(final Stream<Boolean> l) {
145145
}
146146

147147
/**
148-
* Returns a composed predicate of given Stream of predicates
148+
* Returns composed predicate
149149
*
150-
* @param l A stream of predicate functions
151-
* @return composed predicate function
150+
* @param l A stream of predicates
151+
* @return composed predicate
152152
*/
153153
public static <A> F<A, Boolean> andAll(final Stream<F<A, Boolean>> l) {
154154
return Monoid.<A, Boolean>functionMonoid(Monoid.conjunctionMonoid).sumLeft(l);

0 commit comments

Comments
 (0)