io.sarl.apputils.eclipseextensions.buildpath
Class SARLFolderComparator
All Superinterfaces:
java.util.Comparator<T>
class SARLFolderComparator
extends java.lang.Object
implements java.util.Comparator<T>
Comparator of folders according to the standard SARL project structure.
Maven Group Identifier:
io.sarl.apputils
Maven Artifact Identifier:
eclipseextensions
Since:
0.15
Constructor Summary
Constructor and description
new
Create the comparator using the SARLPathComparator for comparing paths.
new(Comparator<T>)
Create the comparator using the given comparator for comparing paths.
Action Summary
Modifier and type Action and description
int compare(IFolder,IFolder)
static SARLFolderComparator getSingleton
Replies the singleton instance for this comparator.
Constructor Details
new
new
Create the comparator using the SARLPathComparator for comparing paths.
new(Comparator<T>)
new(Comparator<T>)
Create the comparator using the given comparator for comparing paths.
Parameters:
pathComparator - the comparator of paths to be used. If it is null, a SARLPathComparator is used.
Action Details
compare(IFolder,IFolder)
def compare(IFolder,IFolder) : int
getSingleton
def getSingleton : SARLFolderComparator
Replies the singleton instance for this comparator.
Returns:
the comparator, never null .