Code example for Date

Methods: before

0
        Date myDate = getSentDate();
        if (myDate == null) {
            myDate = getInternalDate();
        } 
        if (myDate != null) {
            return myDate.before(earliestDate);
        } 
        return false; 
    } 
    @Override 
    public boolean equals(Object o) {
        if (o == null || !(o instanceof Message)) {
            return false; 
        } 
        Message other = (Message)o;
        return (mUid.equals(other.getUid())
                && mFolder.getName().equals(other.getFolder().getName())
                && mFolder.getAccount().getUuid().equals(other.getFolder().getAccount().getUuid()));
    } 
 
    @Override