pl.droidsonroids.gradle.localization.PluralItem.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of android-gradle-localization-plugin Show documentation
Show all versions of android-gradle-localization-plugin Show documentation
Gradle plugin for generating localized string resources
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 +
'}';
}
}