@@ -466,20 +466,6 @@ public A append(A a1, A a2) {
466466 });
467467 }
468468
469- /**
470- * Constructs a monoid from the given semigroup and zero value, which must follow the monoidal laws.
471- * @deprecated since 4.7. Use {@link #monoidDef(Semigroup.Definition, Object)} or {@link Semigroup#monoid(Object)} instead.
472- *
473- * @param s The semigroup for the monoid.
474- * @param zero The zero for the monoid.
475- * @return A monoid instance that uses the given sun function and zero value.
476- */
477- @ Deprecated
478- public static <A > Monoid <A > monoid (final Semigroup <A > s , final A zero ) {
479- return s .monoid (zero );
480- }
481-
482-
483469 /**
484470 * A monoid that adds integers.
485471 */
@@ -528,19 +514,7 @@ public Integer multiply(int n, Integer integer) {
528514 return n <= 0 ? 1 : (int ) StrictMath .pow (integer .doubleValue (), n );
529515 }
530516 });
531-
532- /**
533- * @deprecated Since 4.7. Due to rounding errors, addition of doubles does not comply with monoid laws
534- */
535- @ Deprecated
536- public static final Monoid <Double > doubleAdditionMonoid = monoidDef ((d1 , d2 ) -> d1 + d2 , 0.0 );
537-
538- /**
539- * @deprecated Since 4.7. Due to rounding errors, multiplication of doubles does not comply with monoid laws
540- */
541- @ Deprecated
542- public static final Monoid <Double > doubleMultiplicationMonoid = monoidDef ((d1 , d2 ) -> d1 * d2 , 1.0 );
543-
517+
544518 /**
545519 * A monoid that adds big integers.
546520 */
@@ -889,17 +863,6 @@ public Option<A> sum(F0<Stream<Option<A>>> oas) {
889863 });
890864 }
891865
892- /**
893- * A monoid for options.
894- * @deprecated since 4.7. Use {@link #firstOptionMonoid()}.
895- *
896- * @return A monoid for options.
897- */
898- @ Deprecated
899- public static <A > Monoid <Option <A >> optionMonoid () {
900- return firstOptionMonoid ();
901- }
902-
903866 /**
904867 * A monoid for options that take the first available value.
905868 *
@@ -1121,16 +1084,4 @@ public Set<A> append(Set<A> a1, Set<A> a2) {
11211084 });
11221085 }
11231086
1124- /**
1125- * A monoid for the maximum of elements with ordering o.
1126- * @deprecated since 4.7. Use {@link Ord#maxMonoid(Object)}
1127- *
1128- * @param o An ordering of elements.
1129- * @param zero The minimum element.
1130- */
1131- @ Deprecated
1132- public static <A > Monoid <A > ordMaxMonoid (final Ord <A > o , final A zero ) {
1133- return o .maxMonoid (zero );
1134- }
1135-
11361087}
0 commit comments