Example usage for java.time YearMonth equals

List of usage examples for java.time YearMonth equals

Introduction

In this page you can find the example usage for java.time YearMonth equals.

Prototype

@Override
public boolean equals(Object obj) 

Source Link

Document

Checks if this year-month is equal to another year-month.

Usage

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());
}