Check if list contains at least one of another - enums : <p>I have an enum :</p>

<pre><code>public enum PermissionsEnum {
    ABC("Abc"),        
    XYZ("Xyz"),
    ....
}
</code></pre>

<p>And then I have a list of <strong>Enums</strong>. I want to check if my list has at least one of the enums. I currently check it by an iterative approach. I also know there is a way to do it by using <code>||</code> checking <code>list.contains(enum.ABC..) || list.contains(enum.XYZ) || ...</code>. </p>

<p>Is there a better way to do it?</p>

<p><a href="https://stackoverflow.com/questions/49747276/best-way-to-check-if-list-contains-at-least-one-of-an-enum">This question</a> shows how to do it if the objective list is a list of Strings, I want to get the matching status if the list is another list of enums. </p>
