Skip to content

Commit

Permalink
Update AssertUtils.java.ejs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Feb 10, 2024
1 parent 5ba6e30 commit 121a484
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ import java.util.function.Consumer;
public class AssertUtils {

public static Comparator<ZonedDateTime> zonedDataTimeSameInstant = (ZonedDateTime e, ZonedDateTime a) ->
Objects.compare(e, a, (e1, a2) -> e1.withZoneSameInstant(ZoneOffset.UTC).compareTo(a2.withZoneSameInstant(ZoneOffset.UTC)));
Comparator.nullsFirst((e1, a2) -> e1.withZoneSameInstant(ZoneOffset.UTC).compareTo(a2.withZoneSameInstant(ZoneOffset.UTC)));

public static Comparator<BigDecimal> bigDecimalCompareTo = (BigDecimal e, BigDecimal a) ->
Objects.compare(e, a, (e1, a2) -> e1.compareTo(a2));
Comparator.nullsFirst((e1, a2) -> e1.compareTo(a2));

public static <T> Consumer<T> matchUpdateOrOriginal(T update, T current) {
return s ->
Expand Down

0 comments on commit 121a484

Please sign in to comment.