Code example for Date

Methods: equals

0
        if (!(obj instanceof Data))
            return false; 
 
        Data that = (Data) obj;
 
        return this.id == that.id && this.ts.equals(that.ts) && this.value.equals(that.value);
    } 
}