diff options
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/typeconstraints2/ImmutableTypeVariable2.java')
-rw-r--r-- | bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/typeconstraints2/ImmutableTypeVariable2.java | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/typeconstraints2/ImmutableTypeVariable2.java b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/typeconstraints2/ImmutableTypeVariable2.java deleted file mode 100644 index 0a97c66f..00000000 --- a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/typeconstraints2/ImmutableTypeVariable2.java +++ /dev/null @@ -1,49 +0,0 @@ -/******************************************************************************* - * Copyright (c) 2000, 2007 IBM Corporation and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * IBM Corporation - initial API and implementation - *******************************************************************************/ - -package org.eclipse.wst.jsdt.internal.corext.refactoring.typeconstraints2; - -import org.eclipse.wst.jsdt.internal.corext.refactoring.typeconstraints.types.TType; - -/** - * A ImmutableTypeVariable is a ConstraintVariable which stands for an - * immutable type (without an updatable Source location) - */ - -public final class ImmutableTypeVariable2 extends ConstraintVariable2 { - - public ImmutableTypeVariable2(TType type) { - super(type); - } - - /* - * @see java.lang.Object#hashCode() - */ - public int hashCode() { - return getType().hashCode(); - } - - /* - * @see java.lang.Object#equals(java.lang.Object) - */ - public boolean equals(Object other) { - if (this == other) - return true; - if (other.getClass() != ImmutableTypeVariable2.class) - return false; - - return getType() == ((ImmutableTypeVariable2) other).getType(); - } - - public String toString() { - return getType().getPrettySignature(); - } -} |