1 11 12 package org.eclipse.jdt.internal.corext.refactoring.typeconstraints2; 13 14 import org.eclipse.jdt.internal.corext.refactoring.typeconstraints.types.TType; 15 16 20 21 public final class ImmutableTypeVariable2 extends ConstraintVariable2 { 22 23 public ImmutableTypeVariable2(TType type) { 24 super(type); 25 } 26 27 30 public int hashCode() { 31 return getType().hashCode(); 32 } 33 34 37 public boolean equals(Object other) { 38 if (this == other) 39 return true; 40 if (other.getClass() != ImmutableTypeVariable2.class) 41 return false; 42 43 return getType() == ((ImmutableTypeVariable2) other).getType(); 44 } 45 46 public String toString() { 47 return getType().getPrettySignature(); 48 } 49 } 50 | Popular Tags |