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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/collection/ElementPair.java

Issue 123763002: New analyzer snapshot. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 12 months 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/collection/ElementPair.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/collection/ElementPair.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/collection/ElementPair.java
deleted file mode 100644
index 301e9746e0a423960ee16c0c510ff6206d1c072c..0000000000000000000000000000000000000000
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/utilities/collection/ElementPair.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- * Copyright (c) 2013, the Dart project authors.
- *
- * Licensed under the Eclipse Public License v1.0 (the "License"); you may not use this file except
- * in compliance with the License. You may obtain a copy of the License at
- *
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Unless required by applicable law or agreed to in writing, software distributed under the License
- * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- * or implied. See the License for the specific language governing permissions and limitations under
- * the License.
- */
-package com.google.dart.engine.utilities.collection;
-
-import com.google.dart.engine.element.Element;
-import com.google.dart.engine.utilities.general.ObjectUtilities;
-
-/**
- * The class {@code ElementPair} is a pair of {@link Element}s. {@link Object#equals(Object)} and
- * {@link Object#hashCode()} so this class can be used in hashed data structures.
- */
-public class ElementPair {
- /**
- * The first {@link Element}
- */
- private Element first;
-
- /**
- * The second {@link Element}
- */
- private Element second;
-
- /**
- * The sole constructor for this class, taking two {@link Element}s.
- *
- * @param first the first element
- * @param second the second element
- */
- public ElementPair(Element first, Element second) {
- this.first = first;
- this.second = second;
- }
-
- @Override
- public boolean equals(Object object) {
- if (object == this) {
- return true;
- }
- if (object instanceof ElementPair) {
- ElementPair elementPair = (ElementPair) object;
- return ObjectUtilities.equals(first, elementPair.first)
- && ObjectUtilities.equals(second, elementPair.second);
- }
- return false;
- }
-
- /**
- * Return the first element.
- *
- * @return the first element
- */
- public Element getFirstElt() {
- return first;
- }
-
- /**
- * Return the second element
- *
- * @return the second element
- */
- public Element getSecondElt() {
- return second;
- }
-
- @Override
- public int hashCode() {
- return ObjectUtilities.combineHashCodes(first.hashCode(), second.hashCode());
- }
-}

Powered by Google App Engine
This is Rietveld 408576698