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 ArtifactPartComparator INSTANCE
    This is a singleton instance that should be used in general.
  • Constructor Summary

    Constructors 
    Constructor Description
    ArtifactPartComparator()  
  • Method Summary

    Modifier and Type Method Description
    int compare​(NetworkArtifact left, NetworkArtifact right)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.Comparator

    equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong