
com.avast.jarloader.AlphaFileComparator.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jar-loader_2.9 Show documentation
Show all versions of jar-loader_2.9 Show documentation
Library for dynamic loading of JARs with miscellaneous content.
The newest version!
package com.avast.jarloader
import java.io.File
import java.util.Comparator
/**
* Created 4.11.13
*
* @author Jenda Kolena, [email protected]
* @version 0.1
*/
class AlphaFileComparator extends Comparator[File] {
protected val comparator = new AlphaComparator
def compare(o1: File, o2: File): Int = {
val name1 = o1.getName.substring(0, o1.getName.length - 4)
val name2 = o2.getName.substring(0, o2.getName.length - 4)
comparator.compare(name1, name2)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy