List of usage examples for java.time YearMonth equals
@Override public boolean equals(Object obj)
From source file:Main.java
public static void main(String[] args) { YearMonth y = YearMonth.now(); System.out.println(y.equals(YearMonth.now())); }
From source file:de.lgblaumeiser.ptm.analysis.analyzer.ProjectComputer.java
private Collection<Booking> getBookingsForMonth(final YearMonth month) { return store.retrieveAll().stream().filter(b -> month.equals(YearMonth.from(b.getBookingday()))) .collect(Collectors.toList()); }