This source file includes following definitions.
- value
- localizedValue
- label
- equals
- hashCode
package org.chromium.content.browser.input;
class DateTimeSuggestion {
private final double mValue;
private final String mLocalizedValue;
private final String mLabel;
DateTimeSuggestion(double value, String localizedValue, String label) {
mValue = value;
mLocalizedValue = localizedValue;
mLabel = label;
}
double value() {
return mValue;
}
String localizedValue() {
return mLocalizedValue;
}
String label() {
return mLabel;
}
@Override
public boolean equals(Object object) {
if (!(object instanceof DateTimeSuggestion)) {
return false;
}
final DateTimeSuggestion other = (DateTimeSuggestion) object;
return mValue == other.mValue &&
mLocalizedValue == other.mLocalizedValue &&
mLabel == other.mLabel;
}
@Override
public int hashCode() {
int hash = 31;
hash = 37 * hash + (int) mValue;
hash = 37 * hash + mLocalizedValue.hashCode();
hash = 37 * hash + mLabel.hashCode();
return hash;
}
}