Package i5.las2peer.persistency.helper
Class ArtifactPartComparator
java.lang.Object
i5.las2peer.persistency.helper.ArtifactPartComparator
- All Implemented Interfaces:
java.util.Comparator<NetworkArtifact>
public class ArtifactPartComparator extends java.lang.Object implements java.util.Comparator<NetworkArtifact>
This class can be used to sort a collection of
NetworkArtifact according to their part index.-
Field Summary
Fields Modifier and Type Field Description static ArtifactPartComparatorINSTANCEThis is a singleton instance that should be used in general. -
Constructor Summary
Constructors Constructor Description ArtifactPartComparator() -
Method Summary
Modifier and Type Method Description intcompare(NetworkArtifact left, NetworkArtifact right)
-
Field Details
-
INSTANCE
This is a singleton instance that should be used in general.
-
-
Constructor Details
-
ArtifactPartComparator
public ArtifactPartComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfacejava.util.Comparator<NetworkArtifact>
-