Groupings.Count gc1 = (Groupings.Count) o1; Groupings.Count gc2 = (Groupings.Count) o2; int i1 = gc1.getCount(); int i2 = gc2.getCount();
InstanceStats is1 = (InstanceStats) o1; InstanceStats is2 = (InstanceStats) o2; int i1 = is1.getMaximumCapacityBytes(); int i2 = is2.getMaximumCapacityBytes();
      public int compare(Object o1, Object o2) {        Groupings.Count gc1 = (Groupings.Count) o1;        Groupings.Count gc2 = (Groupings.Count) o2;        int i1 = gc1.getCount();        int i2 = gc2.getCount();        return i2 - i1;      }