OpenConcerto

Dépôt officiel du code source de l'ERP OpenConcerto
sonarqube

svn://code.openconcerto.org/openconcerto

Rev

Rev 149 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 149 Rev 156
Line 91... Line 91...
91
 
91
 
92
    public final String formatDate(final Format f) {
92
    public final String formatDate(final Format f) {
93
        return f.format(this.date);
93
        return f.format(this.date);
94
    }
94
    }
95
 
95
 
-
 
96
    // Date is mutable
-
 
97
    public final Date copyDate() {
-
 
98
        return this.hasDate() ? new Date(this.date.getTime()) : null;
-
 
99
    }
-
 
100
 
96
    @Override
101
    @Override
97
    public int hashCode() {
102
    public int hashCode() {
98
        final int prime = 31;
103
        final int prime = 31;
99
        int result = 1;
104
        int result = 1;
100
        result = prime * result + ((this.date == null) ? 0 : this.date.hashCode());
105
        result = prime * result + ((this.date == null) ? 0 : this.date.hashCode());