@Test public void mainTypeTest() { PluginDescription pluginDescription = new PluginDescription().mainType(PluginType.PUMP); Assert.assertEquals(PluginType.PUMP, pluginDescription.getType()); }
public PluginDescription mainType(PluginType mainType) { this.mainType = mainType; return this; }
PluginDescription { public PluginDescription mainType(PluginType mainType) { this.mainType = mainType; return this; } }
PluginDescription { public PluginDescription mainType(PluginType mainType) { this.mainType = mainType; return this; }  }
PluginDescription { public PluginDescription mainType(PluginType mainType) { this.mainType = mainType; return this; }  PluginDescription mainType(PluginType mainType); PluginDescription fragmentClass(String fragmentClass); PluginDescription alwaysEnabled(boolean alwaysEnabled); PluginDescription alwaysVisible(boolean alwaysVisible); PluginDescription neverVisible(boolean neverVisible); PluginDescription showInList(boolean showInList); PluginDescription pluginName(int pluginName); PluginDescription shortName(int shortName); PluginDescription preferencesId(int preferencesId); PluginDescription enableByDefault(boolean enableByDefault); PluginDescription visibleByDefault(boolean visibleByDefault); PluginDescription description(int description); String getFragmentClass(); PluginType getType(); }
PluginDescription { public PluginDescription mainType(PluginType mainType) { this.mainType = mainType; return this; }  PluginDescription mainType(PluginType mainType); PluginDescription fragmentClass(String fragmentClass); PluginDescription alwaysEnabled(boolean alwaysEnabled); PluginDescription alwaysVisible(boolean alwaysVisible); PluginDescription neverVisible(boolean neverVisible); PluginDescription showInList(boolean showInList); PluginDescription pluginName(int pluginName); PluginDescription shortName(int shortName); PluginDescription preferencesId(int preferencesId); PluginDescription enableByDefault(boolean enableByDefault); PluginDescription visibleByDefault(boolean visibleByDefault); PluginDescription description(int description); String getFragmentClass(); PluginType getType(); public boolean alwaysVisible; public boolean neverVisible; public boolean alwaysEnabled; public boolean enableByDefault; public boolean visibleByDefault; }