@Test public void testToString() { final long id = 38477L; assertEquals("Turnip", sut.toString()); sut.setEntityId(id); assertEquals("Turnip#" + id, sut.toString()); assertEquals("Turnip#" + id, sut.toString()); }
@Override public String toString() { if (toStringValue != null) { return toStringValue; } if (entityId == UNINITIALIZED_LONG_VALUE) { return getEntityName(); } else { toStringValue = getEntityName() + "#" + entityId; } return toStringValue; }
ModelView implements Serializable { @Override public String toString() { if (toStringValue != null) { return toStringValue; } if (entityId == UNINITIALIZED_LONG_VALUE) { return getEntityName(); } else { toStringValue = getEntityName() + "#" + entityId; } return toStringValue; } }
ModelView implements Serializable { @Override public String toString() { if (toStringValue != null) { return toStringValue; } if (entityId == UNINITIALIZED_LONG_VALUE) { return getEntityName(); } else { toStringValue = getEntityName() + "#" + entityId; } return toStringValue; }  }
ModelView implements Serializable { @Override public String toString() { if (toStringValue != null) { return toStringValue; } if (entityId == UNINITIALIZED_LONG_VALUE) { return getEntityName(); } else { toStringValue = getEntityName() + "#" + entityId; } return toStringValue; }  void loadProperties(final Map<String, Object> properties); long getEntityId(); float getSearchIndexScore(); @Override String toString(); boolean hasSearchIndexExplanation(); String getSearchIndexExplanationString(); void setSearchIndexExplanationString(final String inSearchIndexExplanationString); FieldMatch getFieldMatch(); void setFieldMatch(final FieldMatch inFieldMatch); Date getServerDateTime(); void setServerDateTime(final Date inServerDateTime); }
ModelView implements Serializable { @Override public String toString() { if (toStringValue != null) { return toStringValue; } if (entityId == UNINITIALIZED_LONG_VALUE) { return getEntityName(); } else { toStringValue = getEntityName() + "#" + entityId; } return toStringValue; }  void loadProperties(final Map<String, Object> properties); long getEntityId(); float getSearchIndexScore(); @Override String toString(); boolean hasSearchIndexExplanation(); String getSearchIndexExplanationString(); void setSearchIndexExplanationString(final String inSearchIndexExplanationString); FieldMatch getFieldMatch(); void setFieldMatch(final FieldMatch inFieldMatch); Date getServerDateTime(); void setServerDateTime(final Date inServerDateTime); static final String UNINITIALIZED_STRING_VALUE; static final long UNINITIALIZED_LONG_VALUE; static final int UNINITIALIZED_INTEGER_VALUE; static final float UNINITIALIZED_FLOAT_VALUE; static final Date UNINITIALIZED_DATE_VALUE; }