Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(786)

Unified Diff: ui/android/java/src/org/chromium/ui/picker/DateTimeSuggestion.java

Issue 2480203002: ui: Cleanup class/struct forward declarations (Closed)
Patch Set: Sync CL to position 430550 Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/android/java/src/org/chromium/ui/picker/DateTimeSuggestion.java
diff --git a/ui/android/java/src/org/chromium/ui/picker/DateTimeSuggestion.java b/ui/android/java/src/org/chromium/ui/picker/DateTimeSuggestion.java
deleted file mode 100644
index cf8a7aabcc0edb329ff9177dbdca8c726f495eb9..0000000000000000000000000000000000000000
--- a/ui/android/java/src/org/chromium/ui/picker/DateTimeSuggestion.java
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-package org.chromium.ui.picker;
-
-import android.text.TextUtils;
-
-/**
- * Date/time suggestion container used to store information for each suggestion that will be shown
- * in the suggestion list dialog. Keep in sync with date_time_suggestion.h.
- */
-public class DateTimeSuggestion {
- private final double mValue;
- private final String mLocalizedValue;
- private final String mLabel;
-
- /**
- * Constructs a color suggestion container.
- * @param value The suggested date/time value.
- * @param localizedValue The suggested value localized.
- * @param label The label for the suggestion.
- */
- public 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
- && TextUtils.equals(mLocalizedValue, other.mLocalizedValue)
- && TextUtils.equals(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;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698