All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.droidsonroids.gradle.localization.PluralItem.groovy Maven / Gradle / Ivy

There is a newer version: 1.0.19
Show newest version
package pl.droidsonroids.gradle.localization

import groovy.transform.TupleConstructor

/**
 * Descriptor of quantity item
 */
@TupleConstructor
class PluralItem {
    Quantity quantity
    String value
    String comment

    boolean equals(o) {
        if (this.is(o)) return true
        if (getClass() != o.class) return false

        PluralItem that = (PluralItem) o

        if (quantity != that.quantity) return false

        return true
    }

    int hashCode() {
        return quantity.hashCode()
    }

    @Override
    public String toString() {
        return "PluralItem{" +
                "value='" + value + '\'' +
                ", quantity=" + quantity +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy