InboxMessageComparator

public final class InboxMessageComparator implements Comparator<T>, Serializable

A comparator comparing the InboxMessages so that they appear in a chronological order of their appearance in the corresponding Inbox.

If case the timestamps are equal, the versions are compared.

If the versions are the same too, the messages are compared according to their ID values taken as UUID-strings.

Properties

Link copied to clipboard

Functions

Link copied to clipboard
public int compare(InboxMessage m1, InboxMessage m2)

Inherited functions

Link copied to clipboard
public static Comparator<T> comparing<T, U>(Function<? extends Object, ? extends U> keyExtractor, Comparator<? extends Object> keyComparator)
Link copied to clipboard
public static Comparator<T> comparingDouble<T>(ToDoubleFunction<? extends Object> keyExtractor)
Link copied to clipboard
public static Comparator<T> comparingInt<T>(ToIntFunction<? extends Object> keyExtractor)
Link copied to clipboard
public static Comparator<T> comparingLong<T>(ToLongFunction<? extends Object> keyExtractor)
Link copied to clipboard
public static Comparator<T> naturalOrder<T extends Comparable<? extends Object>>()
Link copied to clipboard
public static Comparator<T> nullsFirst<T>(Comparator<? extends Object> comparator)
Link copied to clipboard
public static Comparator<T> nullsLast<T>(Comparator<? extends Object> comparator)
Link copied to clipboard
public Comparator<T> reversed()
Link copied to clipboard
public static Comparator<T> reverseOrder<T extends Comparable<? extends Object>>()
Link copied to clipboard
public Comparator<T> thenComparing(Comparator<? extends Object> other)
Link copied to clipboard
public Comparator<T> thenComparingDouble(ToDoubleFunction<? extends Object> keyExtractor)
Link copied to clipboard
public Comparator<T> thenComparingInt(ToIntFunction<? extends Object> keyExtractor)
Link copied to clipboard
public Comparator<T> thenComparingLong(ToLongFunction<? extends Object> keyExtractor)