@Override public int compare(ProductBrand o1, ProductBrand o2) { return NULLS_LAST_CASE_INSENSITIVE_ORDERING.compare(o1.getValue(), o2.getValue()); }
/** * Creates a new ProductBrand. * * @param brand may be null if creating an "other" dimension */ public static ProductBrand createBrand(@Nullable String brand) { ProductBrand productBrand = new ProductBrand(); productBrand.setValue(brand); return productBrand; }