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();
  }