Package org.hisp.dhis.util
Class IdentifiableObjectUtils
java.lang.Object
org.hisp.dhis.util.IdentifiableObjectUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends IdentifiableObject>
List<String>toCodes(Collection<T> objects) Returns a list of object codes.static <T extends IdentifiableObject>
List<String>toIdentifiers(Collection<T> objects) Returns a list of object identifiers.
-
Constructor Details
-
IdentifiableObjectUtils
public IdentifiableObjectUtils()
-
-
Method Details
-
toIdentifiers
Returns a list of object identifiers.- Type Parameters:
T- the type.- Parameters:
objects- the collection ofIdentifiableObject.- Returns:
- a list of object identifiers.
-
toCodes
Returns a list of object codes.- Type Parameters:
T- the type.- Parameters:
objects- the collection ofIdentifiableObject.- Returns:
- a list of object codes.
-