adam-mcneilly
04/20/2018, 1:05 PMemptyList()
and ArrayList()
?adam-mcneilly
04/20/2018, 1:05 PMjw
04/20/2018, 1:05 PMpoohbar
04/20/2018, 1:06 PMemptyList()
makes more sense to meadam-mcneilly
04/20/2018, 1:06 PMdiesieben07
04/20/2018, 1:06 PMemptyList
is a constant and not mutablediesieben07
04/20/2018, 1:06 PMArrayList
is a new, mutable list.adam-mcneilly
04/20/2018, 1:06 PMpoohbar
04/20/2018, 1:07 PMemptyList()
returns EmptyList
which is a singleton and should be faster than creating a new instance of array list.adam-mcneilly
04/20/2018, 1:07 PMAyden
04/20/2018, 1:07 PMpoohbar
04/20/2018, 1:08 PM