com.evolveum.midpoint.util.xml
Class DomAwareHashCodeStrategy

java.lang.Object
  extended by org.jvnet.jaxb2_commons.lang.DefaultHashCodeStrategy
      extended by org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy
          extended by com.evolveum.midpoint.util.xml.DomAwareHashCodeStrategy
All Implemented Interfaces:
org.jvnet.jaxb2_commons.lang.HashCodeStrategy

public class DomAwareHashCodeStrategy
extends org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy

Strategy for hashCode() methods used in JAXB generated code. The strategy is just returning a constant. This makes the hashing somehow less efficient if the JAXB objects differ just in the DOM parts. This this is quite unlikely under usual circumstances. However the main reason for this is to avoid namespace-related problems.

Author:
Radovan Semancik

Field Summary
static org.jvnet.jaxb2_commons.lang.HashCodeStrategy INSTANCE
           
 
Constructor Summary
DomAwareHashCodeStrategy()
           
 
Method Summary
protected  int hashCodeInternal(org.jvnet.jaxb2_commons.locator.ObjectLocator locator, int hashCode, Object value)
           
 
Methods inherited from class org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy
hashCodeInternal, hashCodeInternal
 
Methods inherited from class org.jvnet.jaxb2_commons.lang.DefaultHashCodeStrategy
hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode, hashCode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static org.jvnet.jaxb2_commons.lang.HashCodeStrategy INSTANCE
Constructor Detail

DomAwareHashCodeStrategy

public DomAwareHashCodeStrategy()
Method Detail

hashCodeInternal

protected int hashCodeInternal(org.jvnet.jaxb2_commons.locator.ObjectLocator locator,
                               int hashCode,
                               Object value)
Overrides:
hashCodeInternal in class org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy


Copyright © 2013 evolveum. All Rights Reserved.