List of usage examples for java.lang Object hashCode
@HotSpotIntrinsicCandidate public native int hashCode();
From source file:de.innovationgate.wgpublisher.cluster.ClusterMember.java
@Override public boolean equals(Object obj) { if (obj == null) { return false; } else {//from ww w . j a v a2s . com return hashCode() == obj.hashCode(); } }
From source file:org.rifidi.edge.core.services.notification.data.EPCGeneration1Event.java
@Override public boolean equals(Object obj) { if (obj instanceof EPCGeneration1Event) { return hex.hashCode() == obj.hashCode(); }//from www . j a va 2 s. c o m return false; }
From source file:bard.db.enums.hibernate.AbstractEnumUserType.java
@Override public int hashCode(final Object x) throws HibernateException { return x == null ? 0 : x.hashCode(); }
From source file:com.omnigon.aem.handlebars.helpers.GetUniqueIdHelper.java
@Override public CharSequence apply(Object context, Options options) throws IOException { if (TagType.VAR == options.tagType || TagType.SUB_EXPRESSION == options.tagType) { int contextHashCode = context.hashCode(); String scriptPath = options.fn.filename(); String uniqueId = UniqueId.generateUniqueId(scriptPath + contextHashCode); return ID_PREFIX + StringUtils.substring(uniqueId, uniqueId.length() - ID_SIZE); }//from w ww. j a v a 2s .co m return StringUtils.EMPTY; }
From source file:org.jasig.mygps.model.transferobject.TaskReportTO.java
/** * This method MUST be implemented for each class and must compare to all * properties that define an equal instance for business rule comparison * purposes.//from ww w . j a va 2 s .co m * * @param other * The object to compare * @return True if properties for business equality are all equal. */ private boolean hasSameDomainSignature(final Object other) { return hashCode() == other.hashCode(); }
From source file:org.phenotips.messaging.PatientReferenceType.java
@Override public int hashCode(Object x) throws HibernateException { if (Patient.class.isInstance(x)) { return x.hashCode(); }/* ww w.j a v a2 s . c o m*/ return 0; }
From source file:org.lightjason.agentspeak.language.execution.action.achievement_test.IAchievementRule.java
@Override public final boolean equals(final Object p_object) { return (p_object != null) && (p_object instanceof IExecution) && (this.hashCode() == p_object.hashCode()); }
From source file:com.fiveamsolutions.nci.commons.util.PasswordUserType.java
/** * {@inheritDoc} */ public int hashCode(Object arg0) { return arg0.hashCode(); }
From source file:com.sun.socialsite.web.listeners.ContextListener.java
/** * Returns the equivalent of the original <code>Object.toString()</code> value * for the specified object, even if its own <code>toString</code> method has been * overridden./* ww w. java 2s.c om*/ */ private String toSimpleString(Object o) { return (o.getClass().getName() + '@' + Integer.toHexString(o.hashCode())); }
From source file:nl.strohalm.cyclos.utils.hibernate.BasePeriodType.java
public int hashCode(final Object x) throws HibernateException { return x == null ? 0 : x.hashCode(); }