@Test public void testWithSingular() { Model<String> singularModel = new Model<String>("Person"); final PluralizedModel model = new PluralizedModel(singularModel); assertEquals(model.getObject(), "Persons"); }
@Override public String getObject() { return Pluralizer.pluralize(singular.getObject()); }
PluralizedModel extends AbstractReadOnlyModel<String> { @Override public String getObject() { return Pluralizer.pluralize(singular.getObject()); } }
PluralizedModel extends AbstractReadOnlyModel<String> { @Override public String getObject() { return Pluralizer.pluralize(singular.getObject()); } PluralizedModel(IModel<String> singular); }
PluralizedModel extends AbstractReadOnlyModel<String> { @Override public String getObject() { return Pluralizer.pluralize(singular.getObject()); } PluralizedModel(IModel<String> singular); @Override void detach(); @Override String getObject(); }
PluralizedModel extends AbstractReadOnlyModel<String> { @Override public String getObject() { return Pluralizer.pluralize(singular.getObject()); } PluralizedModel(IModel<String> singular); @Override void detach(); @Override String getObject();  }