Ejemplo n.º 1
0
  public int getHashCode() {
    ObjectUtils.HashCode hash = ObjectUtils.hash();
    hash.addIdentity(parentStyle);
    addStyleHash(hash);

    // maybe adding conditional style to the hash is not worth it
    // as the remaining attributes provide good enough hash information
    hash.addIdentical(conditionalStyles);

    return hash.getHashCode();
  }
Ejemplo n.º 2
0
 protected void addStyleHash(ObjectUtils.HashCode hash) {
   hash.add(name);
   hash.add(isDefault);
   hash.add(modeValue);
   hash.add(forecolor);
   hash.add(backcolor);
   hash.addIdentical(linePen);
   hash.add(fillValue);
   hash.add(radius);
   hash.add(scaleImageValue);
   hash.add(horizontalAlignmentValue);
   hash.add(verticalAlignmentValue);
   hash.addIdentical(lineBox);
   hash.addIdentical(paragraph);
   hash.add(fontName);
   hash.add(isBold);
   hash.add(isItalic);
   hash.add(isUnderline);
   hash.add(isStrikeThrough);
   hash.add(fontSize);
   hash.add(pdfFontName);
   hash.add(pdfEncoding);
   hash.add(isPdfEmbedded);
   hash.add(rotationValue);
   hash.add(markup);
   hash.add(pattern);
   hash.add(isBlankWhenNull);
 }