/** @return The display string of all parameters. (NotNull) */
 @Override
 public String toString() {
   final StringBuilder sb = new StringBuilder();
   sb.append(DfTypeUtil.toClassTitle(this)).append(":");
   sb.append(xbuildColumnString());
   return sb.toString();
 }
Exemplo n.º 2
0
 protected void checkDowncast(Entity entity) {
   assertObjectNotNull("entity", entity);
   final Class<?> entityType = getEntityType();
   final Class<?> targetType = entity.getClass();
   if (!entityType.isAssignableFrom(targetType)) {
     final String titleName = DfTypeUtil.toClassTitle(entityType);
     String msg = "The entity should be " + titleName + " but it was: " + targetType;
     throw new IllegalStateException(msg);
   }
 }