Skip to content

Sddrar metrics#17

Merged
jzuken merged 53 commits intoml-in-programming:masterfrom
shurik111333:sddrar_metrics
Jul 10, 2017
Merged

Sddrar metrics#17
jzuken merged 53 commits intoml-in-programming:masterfrom
shurik111333:sddrar_metrics

Conversation

@shurik111333
Copy link
Copy Markdown

No description provided.

* or at least one of them is null.
*/
@Contract("null, _ -> false; _, null -> false")
public static <T> boolean hasIntersec(final Set<T> a, final Set<T> b) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Set<String> intersection = new HashSet<String>(a);
intersection.retainAll(b);
return intersection.isEmpty();

?

@jzuken jzuken merged commit 2fdb2ec into ml-in-programming:master Jul 10, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants