Skip to content
Snippets Groups Projects
Commit 98159cc1 authored by ribeaudc's avatar ribeaudc
Browse files

[LMS-267]

remove: - 'ISampleDAO.tryFindSampleWithProcByCode'.
change: - 'ISampleDAO.tryFindSimpleSampleByCode' renamed to 'ISampleDAO.tryFindSampleByCode'.
- Unit test failed (be fixed very soon) but smoke tests are OK.
add: - 'SampleBO.enrichWithProcedures.'

SVN: 4729
parent 1d49fe7f
No related branches found
No related tags found
No related merge requests found
...@@ -91,6 +91,21 @@ public final class CollectionUtils ...@@ -91,6 +91,21 @@ public final class CollectionUtils
return abbreviate(collection, maxLength, ToStringDefaultConverter.getInstance(), style); return abbreviate(collection, maxLength, ToStringDefaultConverter.getInstance(), style);
} }
/**
* Abbreviates a given <code>Collection</code>.
* <p>
* By default it shows the number of items left.
* </p>
*
* @param maxLength the maximum number of items that should be shown. If <code>-1</code> then all items will be
* displayed.
*/
public final static <T> String abbreviate(final Collection<T> collection, final int maxLength,
final IToStringConverter<? super T> converter)
{
return abbreviate(collection, maxLength, converter, CollectionStyle.DEFAULT_COLLECTION_STYLE);
}
/** /**
* Abbreviates a given <code>Collection</code>. * Abbreviates a given <code>Collection</code>.
* <p> * <p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment