public static List < String > readLinesWithClasspathOrFilePath ( String classpathOrFilePath ) { return getStringListAsOptWithClasspath ( classpathOrFilePath ) . filter ( JMPredicate . getGreaterSize ( 0 ) ) . orElseGet ( ( ) -> JMFiles . readLines ( classpathOrFilePath ) ) ; }
Read lines with classpath or file path list .