]> git.mxchange.org Git - jaddressbook-core.git/commitdiff
renamed interfaces/classes to better names
authorRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 22:48:00 +0000 (00:48 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 19 Apr 2017 22:48:00 +0000 (00:48 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
src/org/mxchange/jaddressbookcore/events/addressbook/AddressbookLoadedEvent.java
src/org/mxchange/jaddressbookcore/events/addressbook/LoadedAddressbookEvent.java [deleted file]
src/org/mxchange/jaddressbookcore/events/addressbook/ObservableAddressbookLoadedEvent.java [new file with mode: 0644]
src/org/mxchange/jaddressbookcore/events/sharing/AddressbookSharingEvent.java [deleted file]
src/org/mxchange/jaddressbookcore/events/sharing/EndedAddressbookSharingEvent.java
src/org/mxchange/jaddressbookcore/events/sharing/ObservableAddressbookSharingEvent.java [new file with mode: 0644]
src/org/mxchange/jaddressbookcore/events/sharing/StartedAddressbookSharingEvent.java

index 8319799522d44372c2423d6e850ff96adc11e908..93438f7f02debc2736d1ac7fd58944b13f7f4936 100644 (file)
  */
 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
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
-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
         * <p>
-        * @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/LoadedAddressbookEvent.java
deleted file mode 100644 (file)
index 18a5e7e..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/*
- * Copyright (C) 2016 Roland Häder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jaddressbookcore.events.addressbook;
-
-import org.mxchange.jaddressbookcore.model.addressbook.Addressbook;
-
-/**
- * An event fired when an address book has been loaded
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public class LoadedAddressbookEvent implements AddressbookLoadedEvent {
-
-       /**
-        * 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
-        * <p>
-        * @param addressbook Address book instance
-        */
-       public LoadedAddressbookEvent (final Addressbook addressbook) {
-               this.addressbook = addressbook;
-       }
-
-       @Override
-       public Addressbook getAddressbook () {
-               return this.addressbook;
-       }
-}
diff --git a/src/org/mxchange/jaddressbookcore/events/addressbook/ObservableAddressbookLoadedEvent.java b/src/org/mxchange/jaddressbookcore/events/addressbook/ObservableAddressbookLoadedEvent.java
new file mode 100644 (file)
index 0000000..292d28b
--- /dev/null
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2016 Roland Häder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+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
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableAddressbookLoadedEvent extends Serializable {
+
+       /**
+        * Getter for address book instance
+        * <p>
+        * @return Address book instance
+        */
+       Addressbook getAddressbook ();
+}
diff --git a/src/org/mxchange/jaddressbookcore/events/sharing/AddressbookSharingEvent.java b/src/org/mxchange/jaddressbookcore/events/sharing/AddressbookSharingEvent.java
deleted file mode 100644 (file)
index a682909..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright (C) 2016 Roland Häder
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program.  If not, see <http://www.gnu.org/licenses/>.
- */
-package org.mxchange.jaddressbookcore.events.sharing;
-
-import java.io.Serializable;
-import org.mxchange.jaddressbookcore.events.sharing.type.SharingType;
-import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbook;
-
-/**
- * An interface for address book sharing events
- * <p>
- * @author Roland Häder<roland@mxchange.org>
- */
-public interface AddressbookSharingEvent extends Serializable {
-
-       /**
-        * Getter for address book share instance
-        * <p>
-        * @return Address book share instance
-        */
-       ShareableAddressbook getShareableAddressbook ();
-
-       /**
-        * Getter for sharing type enum
-        * <p>
-        * @return Sharing type enum
-        */
-       SharingType getSharingType ();
-}
index b08ebd3e686c6cf241336661997a05b302358cae..34876f9c56aa4bec5fa97d3eeb4a7a6e05c26bdb 100644 (file)
@@ -24,7 +24,7 @@ import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbo
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
-public class EndedAddressbookSharingEvent implements AddressbookSharingEvent {
+public class EndedAddressbookSharingEvent implements ObservableAddressbookSharingEvent {
 
        /**
         * Serial number
diff --git a/src/org/mxchange/jaddressbookcore/events/sharing/ObservableAddressbookSharingEvent.java b/src/org/mxchange/jaddressbookcore/events/sharing/ObservableAddressbookSharingEvent.java
new file mode 100644 (file)
index 0000000..70eb008
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2016 Roland Häder
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.
+ */
+package org.mxchange.jaddressbookcore.events.sharing;
+
+import java.io.Serializable;
+import org.mxchange.jaddressbookcore.events.sharing.type.SharingType;
+import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbook;
+
+/**
+ * An interface for address book sharing events
+ * <p>
+ * @author Roland Häder<roland@mxchange.org>
+ */
+public interface ObservableAddressbookSharingEvent extends Serializable {
+
+       /**
+        * Getter for address book share instance
+        * <p>
+        * @return Address book share instance
+        */
+       ShareableAddressbook getShareableAddressbook ();
+
+       /**
+        * Getter for sharing type enum
+        * <p>
+        * @return Sharing type enum
+        */
+       SharingType getSharingType ();
+}
index aa27ff6d0dba46d3ca4298bce08bc0e69035b221..709065f9099bc1dfedddc0bffde585bc2a266d38 100644 (file)
@@ -24,7 +24,7 @@ import org.mxchange.jaddressbookcore.model.addressbook.shared.ShareableAddressbo
  * <p>
  * @author Roland Häder<roland@mxchange.org>
  */
-public class StartedAddressbookSharingEvent implements AddressbookSharingEvent {
+public class StartedAddressbookSharingEvent implements ObservableAddressbookSharingEvent {
 
        /**
         * Serial number