toStringShort()

Christoph

Danke an Tobias J. für dieses code candy

/* Empty entity class used by derived servlets not managing
 * any entities. */
protected static class EmptyEntity extends EntityBase
{
  @Override public Long getId() { return null; }
  @Override public String toString() { return “OH MY GOD!”; }
  @Override public String toStringShort() { return “OMG!”; }
}

1 Star2 Stars3 Stars4 Stars5 Stars (4 Bewertungen, Durchschnitt: 4,75 von 5)
Loading...Loading...