2016-10-20 65 views

回答

2

java中有幾個類是複數,儘管它們不是實用程序。這些包括DoubleSummaryStatisticsIntSummaryStatistics.java。我認爲主要含義是「使這個複數形式能夠提高對班級的理解程度還是使其更具可讀性?」 DoubleSummaryStatistic可能不是該類自身的代表。大多數複數類都是實用程序或常量。另一個是有關屬性或屬性的HashMap的擴展。從java.util,下列類別是複數:

LongSummaryStatistics.java - public class 
Attributes.java - public class 
IntSummaryStatistics.java - public class 
Properties.java - public class 
DoubleSummaryStatistics.java - public class 

Executors.java - Utility 
Helpers.java - Utility 
ArrayPrefixHelpers.java - Utility 
Spliterators.java - Utility 
ZipUtils.java - Utility 
Comparators.java - Utility 
ArraysParallelSortHelpers.java - Utility 
Collections.java - Utility 
Collectors.java - Utility 
Streams.java - Utility 
SortedOps.java - Utility 
FindOps.java - Utility 
ReduceOps.java - Utility 
WhileOps.java - Utility 
DistinctOps.java - Utility 
StreamSpliterators.java - Utility 
ForEachOps.java - Utility 
Nodes.java - Utility 
SliceOps.java - Utility 
MatchOps.java - Utility 
Objects.java - Utility 
Arrays.java - Utility 

FormattableFlags.java - Constants 
CharPredicates.java - Constants 
ZipConstants.java - Constants