BlindlyTeam/Blindly

View on GitHub
app/src/main/java/ch/epfl/sdp/blindly/utils/DateInterface.kt

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
package ch.epfl.sdp.blindly.utils

interface DateInterface {
    /**
     * Compute the age of a user given his day, month and year of birth
     *
     * @return the age of the user
     */
    fun getAge(): Int

    /**
     * @return true if the two dates haves the same day, month and year false otherwise
     */
    override fun equals(other: Any?): Boolean

    override fun hashCode(): Int
}