Package com.flower.docs.domain
Class Ids
- java.lang.Object
-
- com.flower.docs.domain.Ids
-
public class Ids extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Ids()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
areValid(java.util.List<Id> ids)
static <T extends IdentifiableElement>
java.util.Map<Id,T>asMap(java.util.List<T> elements)
static java.util.List<Id>
convert(java.util.Collection<java.lang.String> values)
static java.util.List<java.lang.String>
extractValues(java.util.Collection<Id> ids)
static <T extends IdentifiableElement>
java.util.List<Id>from(java.util.Collection<T> identifiables)
ExtractsId
from a list ofIdentifiableElement
static java.util.List<Id>
getValids(java.util.List<Id> ids)
static boolean
isValid(Id id)
-
-
-
Method Detail
-
from
public static <T extends IdentifiableElement> java.util.List<Id> from(java.util.Collection<T> identifiables)
ExtractsId
from a list ofIdentifiableElement
- Parameters:
identifiables
- The elements whose id should be extracted- Returns:
- The identifiers of supplied elements
-
convert
public static java.util.List<Id> convert(java.util.Collection<java.lang.String> values)
- Parameters:
values
- The strings whose id should be converted to ids- Returns:
- The identifiers of supplied elements
-
extractValues
public static java.util.List<java.lang.String> extractValues(java.util.Collection<Id> ids)
- Parameters:
values
- The strings whose id should be converted to ids- Returns:
- The identifiers of supplied elements
-
isValid
public static boolean isValid(Id id)
-
areValid
public static boolean areValid(java.util.List<Id> ids)
-
asMap
public static <T extends IdentifiableElement> java.util.Map<Id,T> asMap(java.util.List<T> elements)
-
-