Przeglądaj źródła

ActionFigurePerson

Seth 6 lat temu
rodzic
commit
b6bef11dcc

+ 7
- 6
src/main/java/com/zipcodewilmington/generic/group/Group.java Wyświetl plik

@@ -9,34 +9,35 @@ import java.util.function.Predicate;
9 9
 /**
10 10
  * @author leon on 06/12/2018.
11 11
  */
12
-public class Group<ChangeThisTypeRespectively,ChangeThisOneToo> extends AbstractGroup{
12
+public class Group<TypeOfId extends Serializable,TypeOfEntity extends IdentifiableInterface<TypeOfId>>
13
+        extends AbstractGroup<TypeOfId, TypeOfEntity>{
13 14
     @Override
14 15
     public Integer count() {
15 16
         return null;
16 17
     }
17 18
 
18 19
     @Override
19
-    public void insert(IdentifiableInterface object) {
20
+    public void insert(TypeOfEntity object) {
20 21
 
21 22
     }
22 23
 
23 24
     @Override
24
-    public void delete(IdentifiableInterface object) {
25
+    public void delete(TypeOfId object) {
25 26
 
26 27
     }
27 28
 
28 29
     @Override
29
-    public void delete(Serializable serializable) {
30
+    public void delete(TypeOfEntity serializable) {
30 31
 
31 32
     }
32 33
 
33 34
     @Override
34
-    public Boolean has(IdentifiableInterface object) {
35
+    public Boolean has(TypeOfEntity object) {
35 36
         return null;
36 37
     }
37 38
 
38 39
     @Override
39
-    public Boolean has(Serializable serializable) {
40
+    public Boolean has(TypeOfId serializable) {
40 41
         return null;
41 42
     }
42 43
 

+ 5
- 4
src/main/java/com/zipcodewilmington/generic/identifiables/ActionFigure.java Wyświetl plik

@@ -5,14 +5,15 @@ import java.io.Serializable;
5 5
 /**
6 6
  * @author leon on 05/12/2018.
7 7
  */
8
-public class ActionFigure implements IdentifiableInterface {
8
+public class ActionFigure implements IdentifiableInterface<Long> {
9
+    private Long id;
9 10
 
10 11
     @Override
11
-    public Serializable getIdentity() {
12
-        return null;
12
+    public Long getIdentity() {
13
+        return id;
13 14
     }
14 15
 
15 16
     public Class getIdentityType() {
16
-        return null;
17
+        return Long.class;
17 18
     }
18 19
 }

+ 5
- 4
src/main/java/com/zipcodewilmington/generic/identifiables/Person.java Wyświetl plik

@@ -5,14 +5,15 @@ import java.io.Serializable;
5 5
 /**
6 6
  * @author leon on 05/12/2018.
7 7
  */
8
-public class Person implements IdentifiableInterface {
8
+public class Person implements IdentifiableInterface<String> {
9
+    private String id;
9 10
 
10 11
     @Override
11
-    public Serializable getIdentity() {
12
-        return null;
12
+    public String getIdentity() {
13
+        return id;
13 14
     }
14 15
 
15 16
     public Class getIdentityType() {
16
-        return null;
17
+        return String.class;
17 18
     }
18 19
 }