public class FulfilledLastSocialCommitmentComparator extends SocialCommitmentComparator
Constructor and Description |
---|
FulfilledLastSocialCommitmentComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(SocialCommitment commitment1,
SocialCommitment commitment2)
Compares the two given social commitments.
|
equals
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public FulfilledLastSocialCommitmentComparator()
public int compare(SocialCommitment commitment1, SocialCommitment commitment2)
SocialCommitmentComparator
compare
in interface Comparator<SocialCommitment>
compare
in class SocialCommitmentComparator
commitment1
- The first SocialCommitment
to be
compared.commitment2
- The second SocialCommitment
to be
compared.0
if the two social commitments are equal;
a value less than 0
if the first commitment comes
before the second commitment; and a value greater than
0
if the second commitment comes before the first
commitment.