22 package com.realtime.crossfire.jxclient.items;
24 import java.util.Comparator;
25 import org.jetbrains.annotations.NotNull;
39 if (o1.getType() < o2.getType()) {
42 if (o1.getType() > o2.getType()) {
45 final int cmp1 = o1.getName().compareTo(o2.getName());
49 if (o1.getTag() < o2.getTag()) {
52 if (o1.getTag() > o2.getTag()) {
A Comparator that compares CfItem instances in inventory view order.
int compare(@NotNull final CfItem o1, @NotNull final CfItem o2)
The representation of a Crossfire Item, client-side.