private ArrayList < Segment10 > tableSegments ( TableEntry10 table ) { ArrayList < Segment10 > tableSegments = new ArrayList <> ( ) ; for ( Segment10 segment : _segments ) { if ( Arrays . equals ( segment . key ( ) , table . key ( ) ) ) { tableSegments . add ( segment ) ; } } Collections . sort ( tableSegments , ( x , y ) -> Long . signum ( y . sequence ( ) - x . sequence ( ) ) ) ; return tableSegments ; }
Returns segments for a table in reverse sequence order .