1 13 package com.tonbeller.jpivot.olap.model; 14 15 import java.util.Comparator ; 16 17 22 public interface Displayable extends Visitable { 23 public static final Comparator LABEL_COMPARATOR = new Comparator (){ 24 public int compare(Object o1, Object o2) { 25 Displayable d1 = (Displayable) o1; 26 Displayable d2 = (Displayable) o2; 27 return d1.getLabel().compareTo(d2.getLabel()); 28 } 29 }; 30 31 34 String getLabel(); 35 36 } 37 | Popular Tags |