public static < T extends TemporalProposition > List < T > getView ( List < T > params , Long minValid , Long maxValid ) { if ( params != null ) { if ( minValid == null && maxValid == null ) { return params ; } else { int min = minValid != null ? binarySearchMinStart ( params , minValid . longValue ( ) ) : 0 ; int max = maxValid != null ? binarySearchMaxFinish ( params , maxValid . longValue ( ) ) : params . size ( ) ; return params . subList ( min , max ) ; } } else { return null ; } }
Filters a list of temporal propositions by time .