From 9746a32e4c688402b0acb0fa5e213ab29ce96fdd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 20 Apr 2017 00:48:00 +0200 Subject: [PATCH] renamed interfaces/classes to better names MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../addressbook/AddressbookLoadedEvent.java | 28 +++++++++++++++---- ... => ObservableAddressbookLoadedEvent.java} | 28 ++++--------------- .../sharing/EndedAddressbookSharingEvent.java | 2 +- ...=> ObservableAddressbookSharingEvent.java} | 2 +- .../StartedAddressbookSharingEvent.java | 2 +- 5 files changed, 31 insertions(+), 31 deletions(-) rename src/org/mxchange/jaddressbookcore/events/addressbook/{LoadedAddressbookEvent.java => ObservableAddressbookLoadedEvent.java} (60%) rename src/org/mxchange/jaddressbookcore/events/sharing/{AddressbookSharingEvent.java => ObservableAddressbookSharingEvent.java} (94%) diff --git a/src/org/mxchange/jaddressbookcore/events/addressbook/AddressbookLoadedEvent.java b/src/org/mxchange/jaddressbookcore/events/addressbook/AddressbookLoadedEvent.java index 8319799..93438f7 100644 --- a/src/org/mxchange/jaddressbookcore/events/addressbook/AddressbookLoadedEvent.java +++ b/src/org/mxchange/jaddressbookcore/events/addressbook/AddressbookLoadedEvent.java @@ -16,20 +16,36 @@ */ package org.mxchange.jaddressbookcore.events.addressbook; -import java.io.Serializable; import org.mxchange.jaddressbookcore.model.addressbook.Addressbook; /** - * An interface for an event if an address book has been loaded + * An event fired when an address book has been loaded *

* @author Roland Häder */ -public interface AddressbookLoadedEvent extends Serializable { +public class AddressbookLoadedEvent implements ObservableAddressbookLoadedEvent { /** - * Getter for address book instance + * Serial number + */ + private static final long serialVersionUID = 48_305_823_537_427_713L; + + /** + * Adress book instance causing this event + */ + private final Addressbook addressbook; + + /** + * Constructor with address book instance *

- * @return Address book instance + * @param addressbook Address book instance */ - Addressbook getAddressbook (); + public AddressbookLoadedEvent (final Addressbook addressbook) { + this.addressbook = addressbook; + } + + @Override + public Addressbook getAddressbook () { + return this.addressbook; + } } diff --git a/src/org/mxchange/jaddressbookcore/events/addressbook/LoadedAddressbookEvent.java b/src/org/mxchange/jaddressbookcore/events/addressbook/ObservableAddressbookLoadedEvent.java similarity index 60% rename from src/org/mxchange/jaddressbookcore/events/addressbook/LoadedAddressbookEvent.java rename to src/org/mxchange/jaddressbookcore/events/addressbook/ObservableAddressbookLoadedEvent.java index 18a5e7e..292d28b 100644 --- a/src/org/mxchange/jaddressbookcore/events/addressbook/LoadedAddressbookEvent.java +++ b/src/org/mxchange/jaddressbookcore/events/addressbook/ObservableAddressbookLoadedEvent.java @@ -16,36 +16,20 @@ */ package org.mxchange.jaddressbookcore.events.addressbook; +import java.io.Serializable; import org.mxchange.jaddressbookcore.model.addressbook.Addressbook; /** - * An event fired when an address book has been loaded + * An interface for an event if an address book has been loaded *

* @author Roland Häder */ -public class LoadedAddressbookEvent implements AddressbookLoadedEvent { +public interface ObservableAddressbookLoadedEvent extends Serializable { /** - * Serial number - */ - private static final long serialVersionUID = 48_305_823_537_427_713L; - - /** - * Adress book instance causing this event - */ - private final Addressbook addressbook; - - /** - * Constructor with address book instance + * Getter for address book instance *

- * @param addressbook Address book instance + * @return Address book instance */ - public LoadedAddressbookEvent (final Addressbook addressbook) { - this.addressbook = addressbook; - } - - @Override - public Addressbook getAddressbook () { - return this.addressbook; - } + Addressbook getAddressbook (); } diff --git a/src/org/mxchange/jaddressbookcore/events/sharing/EndedAddressbookSharingEvent.java b/src/org/mxchange/jaddressbookcore/events/sharing/EndedAddressbookSharingEvent.java index b08ebd3..34876f9 100644 --- a/src/org/mxchange/jaddressbookcore/events/sharing/EndedAddressbookSharingEvent.java +++ b/src/org/mxchange/jaddressbookcore/events/sharing/EndedAddressbookSharingEvent.java @@ -24,7 +24,7 @@ import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbo *

* @author Roland Häder */ -public class EndedAddressbookSharingEvent implements AddressbookSharingEvent { +public class EndedAddressbookSharingEvent implements ObservableAddressbookSharingEvent { /** * Serial number diff --git a/src/org/mxchange/jaddressbookcore/events/sharing/AddressbookSharingEvent.java b/src/org/mxchange/jaddressbookcore/events/sharing/ObservableAddressbookSharingEvent.java similarity index 94% rename from src/org/mxchange/jaddressbookcore/events/sharing/AddressbookSharingEvent.java rename to src/org/mxchange/jaddressbookcore/events/sharing/ObservableAddressbookSharingEvent.java index a682909..70eb008 100644 --- a/src/org/mxchange/jaddressbookcore/events/sharing/AddressbookSharingEvent.java +++ b/src/org/mxchange/jaddressbookcore/events/sharing/ObservableAddressbookSharingEvent.java @@ -25,7 +25,7 @@ import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbo *

* @author Roland Häder */ -public interface AddressbookSharingEvent extends Serializable { +public interface ObservableAddressbookSharingEvent extends Serializable { /** * Getter for address book share instance diff --git a/src/org/mxchange/jaddressbookcore/events/sharing/StartedAddressbookSharingEvent.java b/src/org/mxchange/jaddressbookcore/events/sharing/StartedAddressbookSharingEvent.java index aa27ff6..709065f 100644 --- a/src/org/mxchange/jaddressbookcore/events/sharing/StartedAddressbookSharingEvent.java +++ b/src/org/mxchange/jaddressbookcore/events/sharing/StartedAddressbookSharingEvent.java @@ -24,7 +24,7 @@ import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbo *

* @author Roland Häder */ -public class StartedAddressbookSharingEvent implements AddressbookSharingEvent { +public class StartedAddressbookSharingEvent implements ObservableAddressbookSharingEvent { /** * Serial number -- 2.39.5