public static Criteria criteriaFromList ( List < ? > list ) { List < Object > args = new ArrayList ( list ) ; Object o = atIndex ( args , - 1 ) ; if ( ! ( o instanceof List ) ) { atIndex ( args , - 1 , Collections . singletonList ( o ) ) ; } return ( Criteria ) Invoker . invokeFromList ( ObjectFilter . class , "createCriteriaFromClass" , args ) ; }
Creates criteria from a list . This is used to configure Criteria in JSON .