public static < T , C extends Collection < T > > Pair < Integer , C > page ( long start , long howMany , Collection < T > in , C out ) { return Pair . of ( in . size ( ) , Consumers . all ( Filtering . slice ( start , howMany , in ) , out ) ) ; }
Creates a page view of a collection adding elements to the out collection .