nl.siegmann.epublib.domain.Resources.containsId C# (CSharp) Method

containsId() public method

Whether the map of resources already contains a resource with the given id.
public containsId ( string id ) : bool
id string
return bool
        public bool containsId(string id)
        {
            if (StringUtil.isBlank(id))
            {
                return false;
            }
            foreach (Resource resource in resources.Values)
            {
                if (id.Equals(resource.getId()))
                {
                    return true;
                }
            }
            return false;
        }