Code example for Date

Methods: equals

0
        description.appendValue(date);
    } 
 
    @Override 
    public boolean matchesSafely(Date item) {
        return item.equals(date);
    } 
 
    public static void setDefaultDateFormat(DateFormat dateFormat) {
        defaultDateFormat = dateFormat;
    } 
}