Arturo Bernal created HADOOP-17490:
--------------------------------------
Summary: Minor improvement use isEmpty
Key: HADOOP-17490
URL: https://issues.apache.org/jira/browse/HADOOP-17490
Project: Hadoop Common
Issue Type: Improvement
Reporter: Arturo Bernal
Use isEmpty instead size() > o.
{{size()}} can be *O(1)* or *O(N)*, depending on the {{data structure}};
{{.isEmpty()}} is never *O(N)*.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]