Class 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)
      Converts a list of Id value to a list of Id
      static java.util.List<java.lang.String> extractValues​(java.util.Collection<Id> ids)
      Converts a list of Id value to a list of Id
      static <T extends IdentifiableElement>
      java.util.List<Id>
      from​(java.util.Collection<T> identifiables)
      Extracts Id from a list of IdentifiableElement
      static java.util.List<Id> getValids​(java.util.List<Id> ids)  
      static boolean isValid​(Id id)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Ids

        public Ids()
    • Method Detail

      • from

        public static <T extends IdentifiableElement> java.util.List<Id> from​(java.util.Collection<T> identifiables)
        Extracts Id from a list of IdentifiableElement
        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)
        Converts a list of Id value to a list of Id
        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)
        Converts a list of Id value to a list of Id
        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)
      • getValids

        public static java.util.List<Id> getValids​(java.util.List<Id> ids)
      • asMap

        public static <T extends IdentifiableElement> java.util.Map<Id,​T> asMap​(java.util.List<T> elements)