public static MutableSet < Integer > toSet ( int from , int to ) { MutableSet < Integer > targetCollection = UnifiedSet . newSet ( ) ; Interval . fromTo ( from , to ) . forEach ( CollectionAddProcedure . on ( targetCollection ) ) ; return targetCollection ; }
Returns an Set representing the Integer values from the value from to the value to .