com.helger.commons.hashcode.HashCodeGenerator Java Examples

The following examples show how to use com.helger.commons.hashcode.HashCodeGenerator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CSSRect.java    From ph-css with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_sTop)
                                     .append (m_sRight)
                                     .append (m_sBottom)
                                     .append (m_sLeft)
                                     .getHashCode ();
}
 
Example #2
Source File: LRUMap.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  // Special case because base implementation is a bit bogus
  final HashCodeGenerator aHCG = new HashCodeGenerator (this).append (m_nMaxSize);
  for (final Map.Entry <KEYTYPE, VALUETYPE> aEntry : entrySet ())
    aHCG.append (aEntry.getKey ()).append (aEntry.getValue ());
  return aHCG.getHashCode ();
}
 
Example #3
Source File: CSSPropertyEnumOrNumbers.java    From ph-css with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return HashCodeGenerator.getDerived (super.hashCode ())
                          .append (m_bWithPercentage)
                          .append (m_nMinNumbers)
                          .append (m_nMaxNumbers)
                          .getHashCode ();
}
 
Example #4
Source File: XPathConfig.java    From ph-schematron with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aXPathFactory)
                                     .append (m_aXPathVariableResolver)
                                     .append (m_aXPathFunctionResolver)
                                     .getHashCode ();
}
 
Example #5
Source File: VersionRange.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aFloorVersion)
                                     .append (m_bIncludeFloor)
                                     .append (m_aCeilVersion)
                                     .append (m_bIncludeCeil)
                                     .getHashCode ();
}
 
Example #6
Source File: CSSSelectorAttribute.java    From ph-css with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_sNamespacePrefix)
                                     .append (m_sAttrName)
                                     .append (m_eOperator)
                                     .append (m_sAttrValue)
                                     .getHashCode ();
}
 
Example #7
Source File: URLParameter.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  int ret = m_nHashCode;
  if (ret == IHashCodeGenerator.ILLEGAL_HASHCODE)
    ret = m_nHashCode = new HashCodeGenerator (this).append (m_sName).append (m_sValue).getHashCode ();
  return ret;
}
 
Example #8
Source File: FileSystemResource.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  // We need a cached one!
  int ret = m_nHashCode;
  if (ret == IHashCodeGenerator.ILLEGAL_HASHCODE)
    ret = m_nHashCode = new HashCodeGenerator (this).append (m_aFile).getHashCode ();
  return ret;
}
 
Example #9
Source File: CSSUnknownRule.java    From ph-css with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_sDeclaration)
                                     .append (m_sParameterList)
                                     .append (m_sBody)
                                     .getHashCode ();
}
 
Example #10
Source File: CascadingStyleSheet.java    From ph-css with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aImportRules)
                                     .append (m_aNamespaceRules)
                                     .append (m_aRules)
                                     .getHashCode ();
}
 
Example #11
Source File: FileIOError.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_eOperation)
                                     .append (m_eCode)
                                     .append (m_aFile1)
                                     .append (m_aFile2)
                                     .append (m_aException)
                                     .getHashCode ();
}
 
Example #12
Source File: AbstractCSSPropertyEnums.java    From ph-css with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  return HashCodeGenerator.getDerived (super.hashCode ())
                          .append (m_nMinArgCount)
                          .append (m_nMaxArgCount)
                          .getHashCode ();
}
 
Example #13
Source File: MimeTypeInfo.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  int ret = m_nHashCode;
  if (ret == IHashCodeGenerator.ILLEGAL_HASHCODE)
    ret = m_nHashCode = new HashCodeGenerator (this).append (m_aMimeType).append (m_sSource).getHashCode ();
  return ret;
}
 
Example #14
Source File: DirectedGraphNodeFast.java    From ph-commons with Apache License 2.0 5 votes vote down vote up
@Override
public int hashCode ()
{
  int ret = m_nHashCode;
  if (ret == IHashCodeGenerator.ILLEGAL_HASHCODE)
    ret = m_nHashCode = new HashCodeGenerator (this).append (getID ()).getHashCode ();
  return ret;
}
 
Example #15
Source File: MockHasName.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_sName).getHashCode ();
}
 
Example #16
Source File: CSSMediaList.java    From ph-css with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aMedia).getHashCode ();
}
 
Example #17
Source File: MockHasParent.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_sID).getHashCode ();
}
 
Example #18
Source File: CSSSupportsConditionDeclaration.java    From ph-css with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aDeclaration).getHashCode ();
}
 
Example #19
Source File: MockSessionSingletonTreeWithUniqueID.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).getHashCode ();
}
 
Example #20
Source File: FormatableObject.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aValue).append (m_aFormatter).getHashCode ();
}
 
Example #21
Source File: Wrapper.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aObj).getHashCode ();
}
 
Example #22
Source File: CSSPropertyEnum.java    From ph-css with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return HashCodeGenerator.getDerived (super.hashCode ()).append (m_aEnumValues).getHashCode ();
}
 
Example #23
Source File: ConstantHasTextWithArgs.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_sFixedText).getHashCode ();
}
 
Example #24
Source File: CSSSelectorMemberNot.java    From ph-css with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aNestedSelectors).getHashCode ();
}
 
Example #25
Source File: MapBasedXPathFunctionResolver.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aMap).getHashCode ();
}
 
Example #26
Source File: CSSSupportsConditionNegation.java    From ph-css with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aSupportsMember).getHashCode ();
}
 
Example #27
Source File: CSSExpression.java    From ph-css with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aMembers).getHashCode ();
}
 
Example #28
Source File: DynamicHasErrorText.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aText).getHashCode ();
}
 
Example #29
Source File: URLResource.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return new HashCodeGenerator (this).append (m_aURL).getHashCode ();
}
 
Example #30
Source File: LoggingLRUMap.java    From ph-commons with Apache License 2.0 4 votes vote down vote up
@Override
public int hashCode ()
{
  return HashCodeGenerator.getDerived (super.hashCode ()).append (m_sMapName).getHashCode ();
}