Class AttributeInfoUtil


  • public final class AttributeInfoUtil
    extends java.lang.Object
    Utility methods to retrieve values from instances of AttributeInfo.
    • Method Detail

      • toMap

        public static java.util.Map<java.lang.String,​AttributeInfo> toMap​(java.util.Collection<? extends AttributeInfo> attributes)
        Transform a Collection of AttributeInfo instances into a Map. The key to each element in the map is the name of an AttributeInfo. The value of each element in the map is the AttributeInfo instance with that name.
        Parameters:
        attributes - set of AttributeInfo to transform to a map.
        Returns:
        a map of string and AttributeInfo.
        Throws:
        java.lang.NullPointerException - if the parameter attributes is null.