io.sarl.apputils.eclipseextensions.buildpath
Class SARLClasspathEntryComparator
All Superinterfaces:
java.util.Comparator<T>
class SARLClasspathEntryComparator
extends java.lang.Object
implements java.util.Comparator<T>
Comparator of classpath entries according tothe typical structure of a SARL project.
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(IClasspathEntry,IClasspathEntry)
static SARLClasspathEntryComparator 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(IClasspathEntry,IClasspathEntry)
def compare(IClasspathEntry,IClasspathEntry) : int
getSingleton
def getSingleton : SARLClasspathEntryComparator
Replies the singleton instance for this comparator.
Returns:
the comparator, never null .