List of usage examples for org.eclipse.jdt.internal.core.util Util combineHashCodes
public static int combineHashCodes(int hashCode1, int hashCode2)
From source file:com.codenvy.ide.ext.java.server.internal.core.ClassFile.java
License:Open Source License
public int hashCode() { return Util.combineHashCodes(this.name.hashCode(), this.parent.hashCode()); }
From source file:com.codenvy.ide.ext.java.server.internal.core.Initializer.java
License:Open Source License
public int hashCode() { return Util.combineHashCodes(this.parent.hashCode(), this.occurrenceCount); }
From source file:com.codenvy.ide.ext.java.server.internal.core.JarEntryResource.java
License:Open Source License
public int hashCode() { return Util.combineHashCodes(this.simpleName.hashCode(), this.parent.hashCode()); }
From source file:com.codenvy.ide.ext.java.server.internal.core.JavaElement.java
License:Open Source License
/** * Returns the hash code for this Java element. By default, * the hash code for an element is a combination of its name * and parent's hash code. Elements with other requirements must * override this method./*from w ww .j ava2 s .c om*/ */ public int hashCode() { if (this.parent == null) return super.hashCode(); return Util.combineHashCodes(getElementName().hashCode(), this.parent.hashCode()); }
From source file:com.codenvy.ide.ext.java.server.internal.core.SourceMethod.java
License:Open Source License
/** * @see org.eclipse.jdt.internal.core.JavaElement#hashCode() *///from w w w. j a v a 2 s . com public int hashCode() { int hash = super.hashCode(); for (int i = 0, length = this.parameterTypes.length; i < length; i++) { hash = Util.combineHashCodes(hash, this.parameterTypes[i].hashCode()); } return hash; }
From source file:org.eclipse.ajdt.core.javaelements.AJCodeElement.java
License:Open Source License
public int hashCode() { return Util.combineHashCodes(name.hashCode(), occurrenceCount); }
From source file:org.eclipse.ajdt.core.javaelements.AspectJMemberElement.java
License:Open Source License
/** * @see org.eclipse.jdt.internal.core.JavaElement#hashCode() *///from www . j a v a2 s.com public int hashCode() { int hash = super.hashCode(); for (int i = 0, length = fParameterTypes.length; i < length; i++) { hash = Util.combineHashCodes(hash, fParameterTypes[i].hashCode()); } return hash; }
From source file:org.eclipse.jdt.internal.core.PackageFragment.java
License:Open Source License
public int hashCode() { int hash = this.parent.hashCode(); for (int i = 0, length = this.names.length; i < length; i++) hash = Util.combineHashCodes(this.names[i].hashCode(), hash); return hash;//from w w w. java 2 s. c om }
From source file:org.eclipse.objectteams.otdt.internal.core.OTJavaElement.java
License:Open Source License
/** * COPIED basically from JavaElement/*from www. ja v a2 s . co m*/ * Returns the hash code for this Java element. By default, * the hash code for an element is a combination of its name * and parent's hash code. Elements with other requirements must * override this method. */ public int hashCode() { IJavaElement myParent = this.getParent(); if (myParent == null) return super.hashCode(); return Util.combineHashCodes(getElementName().hashCode(), myParent.hashCode()); }
From source file:org.talend.repository.model.ItemVersionObject.java
License:Open Source License
@SuppressWarnings("restriction") @Override// w ww.ja v a 2s. co m public int hashCode() { return Util.combineHashCodes(getRepositoryNode().getId().hashCode(), getOldVersion().hashCode()); }