From: Roland Haeder Date: Thu, 16 Jul 2015 06:31:06 +0000 (+0200) Subject: Convention applied: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3d62a931aaed1be63a675d5562588733329fcec2;p=addressbook-swing.git Convention applied: // Valid: someFooMethod(); // Not okay: someFooMethod (); // But in definition: public void someFooMethod () { // Some code here } Signed-off-by:Roland Häder --- diff --git a/Addressbook/src/org/mxchange/addressbook/FrameworkInterface.java b/Addressbook/src/org/mxchange/addressbook/FrameworkInterface.java index 5bc5d24..4ab3bb5 100644 --- a/Addressbook/src/org/mxchange/addressbook/FrameworkInterface.java +++ b/Addressbook/src/org/mxchange/addressbook/FrameworkInterface.java @@ -28,5 +28,5 @@ public interface FrameworkInterface { * Getter for contact manager * @return Contact manager instance */ - public ManageableContact getContactManager (); + public ManageableContact getContactManager(); } diff --git a/Addressbook/src/org/mxchange/addressbook/application/AddressbookApplication.java b/Addressbook/src/org/mxchange/addressbook/application/AddressbookApplication.java index 00baae0..2d3237a 100644 --- a/Addressbook/src/org/mxchange/addressbook/application/AddressbookApplication.java +++ b/Addressbook/src/org/mxchange/addressbook/application/AddressbookApplication.java @@ -131,7 +131,7 @@ public class AddressbookApplication extends BaseFrameworkSystem implements Appli */ public static void main (String[] args) { // Start application - new AddressbookApplication().start (); + new AddressbookApplication().start(); } /** @@ -197,7 +197,7 @@ public class AddressbookApplication extends BaseFrameworkSystem implements Appli this.getLogger().info("Program is started."); // Launch application - ApplicationManager.getManager(this).start (); + ApplicationManager.getManager(this).start(); this.getLogger().info("End of program (last line)"); } diff --git a/Addressbook/src/org/mxchange/addressbook/application/Application.java b/Addressbook/src/org/mxchange/addressbook/application/Application.java index 67241ad..503cfe5 100644 --- a/Addressbook/src/org/mxchange/addressbook/application/Application.java +++ b/Addressbook/src/org/mxchange/addressbook/application/Application.java @@ -26,10 +26,10 @@ public interface Application extends FrameworkInterface { /** * Bootstraps the application */ - public void doBootstrap (); + public void doBootstrap(); /** * Run the main loop */ - public void doMainLoop (); + public void doMainLoop(); } diff --git a/Addressbook/src/org/mxchange/addressbook/client/Client.java b/Addressbook/src/org/mxchange/addressbook/client/Client.java index 6713139..9a8ad8b 100644 --- a/Addressbook/src/org/mxchange/addressbook/client/Client.java +++ b/Addressbook/src/org/mxchange/addressbook/client/Client.java @@ -75,7 +75,7 @@ public interface Client extends FrameworkInterface { /** * Enables isRunning attribute which singals that the client is running */ - public void enableIsRunning (); + public void enableIsRunning(); /** * Asks the the user to enter a single character which must match validChars @@ -131,7 +131,7 @@ public interface Client extends FrameworkInterface { * * @return Whether the client is still active */ - public boolean isRunning (); + public boolean isRunning(); /** * Shows given menu entry in client @@ -143,10 +143,10 @@ public interface Client extends FrameworkInterface { /** * Shows introduction to user */ - public void showWelcome (); + public void showWelcome(); /** * Shows current menu selection to the user */ - public void showCurrentMenu (); + public void showCurrentMenu(); } diff --git a/Addressbook/src/org/mxchange/addressbook/contact/Contact.java b/Addressbook/src/org/mxchange/addressbook/contact/Contact.java index b027237..21044cf 100644 --- a/Addressbook/src/org/mxchange/addressbook/contact/Contact.java +++ b/Addressbook/src/org/mxchange/addressbook/contact/Contact.java @@ -29,125 +29,125 @@ public interface Contact extends FrameworkInterface { * Enables the flag "own data" which signals that this contact is the user's * own data. */ - public void enableFlagOwnContact (); + public void enableFlagOwnContact(); /** * Some "getter" for translated gender of the contact * @return Translated / human-readable gender */ - public String getTranslatedGender (); + public String getTranslatedGender(); /** * Checks whether the contact is user's own data * * @return Own data? */ - public boolean isOwnContact (); + public boolean isOwnContact(); /** * Gender of the contact * * @return the gender */ - public char getGender (); + public char getGender(); /** * Surname * * @return the surname */ - public String getSurname (); + public String getSurname(); /** * Family name * * @return the familyName */ - public String getFamilyName (); + public String getFamilyName(); /** * Companyname * * @return the companyName */ - public String getCompanyName (); + public String getCompanyName(); /** * Street * * @return the street */ - public String getStreet (); + public String getStreet(); /** * House number * * @return the houseNumber */ - public int getHouseNumber (); + public int getHouseNumber(); /** * ZIP code * * @return the zipCode */ - public int getZipCode (); + public int getZipCode(); /** * City * * @return the city */ - public String getCity (); + public String getCity(); /** * Country code * * @return the countryCode */ - public String getCountryCode (); + public String getCountryCode(); /** * Email address * * @return the emailAddress */ - public String getEmailAddress (); + public String getEmailAddress(); /** * Phone number * * @return the phoneNumber */ - public String getPhoneNumber (); + public String getPhoneNumber(); /** * Fax number * * @return the faxNumber */ - public String getFaxNumber (); + public String getFaxNumber(); /** * Cellphone number * * @return the cellphoneNumber */ - public String getCellphoneNumber (); + public String getCellphoneNumber(); /** * Birth day * * @return the birthday */ - public String getBirthday (); + public String getBirthday(); /** * Comments * * @return the comment */ - public String getComment (); + public String getComment(); /** * Shows the contact to the user diff --git a/Addressbook/src/org/mxchange/addressbook/manager/application/ManageableApplication.java b/Addressbook/src/org/mxchange/addressbook/manager/application/ManageableApplication.java index dec9fe1..325f83c 100644 --- a/Addressbook/src/org/mxchange/addressbook/manager/application/ManageableApplication.java +++ b/Addressbook/src/org/mxchange/addressbook/manager/application/ManageableApplication.java @@ -26,5 +26,5 @@ public interface ManageableApplication extends Manageable { /** * Launches application */ - public void start (); + public void start(); } diff --git a/Addressbook/src/org/mxchange/addressbook/manager/contact/ManageableContact.java b/Addressbook/src/org/mxchange/addressbook/manager/contact/ManageableContact.java index 9378f65..6df9615 100644 --- a/Addressbook/src/org/mxchange/addressbook/manager/contact/ManageableContact.java +++ b/Addressbook/src/org/mxchange/addressbook/manager/contact/ManageableContact.java @@ -36,7 +36,7 @@ public interface ManageableContact extends Manageable { /** * Let the user add a new other address */ - public void addOtherAddress (); + public void addOtherAddress(); /** * The user can change address data, like street, ZIP code, city and country @@ -59,7 +59,7 @@ public interface ManageableContact extends Manageable { /** * Let the user change other address */ - public void changeOtherAddress (); + public void changeOtherAddress(); /** * The user can change other data, like phone numbers or comments. @@ -72,22 +72,22 @@ public interface ManageableContact extends Manageable { /** * Let the user change own data */ - public void changeOwnData (); + public void changeOwnData(); /** * Let the user delete other address */ - public void deleteOtherAddress (); + public void deleteOtherAddress(); /** * Asks user for own data */ - public void doEnterOwnData (); + public void doEnterOwnData(); /** * Getter for size * * @return size of contact "book" */ - public int size (); + public int size(); } diff --git a/Addressbook/src/org/mxchange/addressbook/menu/Menu.java b/Addressbook/src/org/mxchange/addressbook/menu/Menu.java index 809357c..4a13bdb 100644 --- a/Addressbook/src/org/mxchange/addressbook/menu/Menu.java +++ b/Addressbook/src/org/mxchange/addressbook/menu/Menu.java @@ -31,7 +31,7 @@ public interface Menu { * "Getter" for an iterator on all menu items of the current menu * @return Iterator on all menu items */ - public Iterator getMenuItemsIterator (); + public Iterator getMenuItemsIterator(); /** * Shows this menu @@ -43,5 +43,5 @@ public interface Menu { * Size of all menu items * @return */ - public int getMenuItemsCount (); + public int getMenuItemsCount(); } diff --git a/Addressbook/src/org/mxchange/addressbook/menu/item/SelectableMenuItem.java b/Addressbook/src/org/mxchange/addressbook/menu/item/SelectableMenuItem.java index b57dfa6..efbce50 100644 --- a/Addressbook/src/org/mxchange/addressbook/menu/item/SelectableMenuItem.java +++ b/Addressbook/src/org/mxchange/addressbook/menu/item/SelectableMenuItem.java @@ -34,11 +34,11 @@ public interface SelectableMenuItem { * Access key * @return the accessKey */ - public char getAccessKey (); + public char getAccessKey(); /** * Text to user * @return the text */ - public String getText (); + public String getText(); }