/** {@inheritDoc } */ @Override public String toString() { final StringBuilder builder = new StringBuilder(); builder.append("Point Symbolizer : "); builder.append(Classes.getShortClassName(this)); builder.append(" ["); if (uom != null) { builder.append(" Unit="); builder.append(uom); } if (geom != null) { builder.append(" Geometry="); builder.append(geom); } builder.append(']'); if (graphic != null) { builder.append('\n'); String sub = "\u2514\u2500\u2500" + graphic.toString(); // move text to the right sub = sub.replaceAll("\n", "\n\u00A0\u00A0\u00A0"); // move text to the right builder.append(sub); } return builder.toString(); }
/** {@inheritDoc } */ @Override public int hashCode() { int hash = graphic.hashCode(); hash *= uom.hashCode(); hash *= desc.hashCode(); if (geom != null) hash *= geom.hashCode(); if (name != null) hash *= name.hashCode(); return hash; }