Explorar el Código

ActionFigurePerson

Seth hace 6 años
padre
commit
b6bef11dcc

+ 7
- 6
src/main/java/com/zipcodewilmington/generic/group/Group.java Ver fichero

9
 /**
9
 /**
10
  * @author leon on 06/12/2018.
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
     @Override
14
     @Override
14
     public Integer count() {
15
     public Integer count() {
15
         return null;
16
         return null;
16
     }
17
     }
17
 
18
 
18
     @Override
19
     @Override
19
-    public void insert(IdentifiableInterface object) {
20
+    public void insert(TypeOfEntity object) {
20
 
21
 
21
     }
22
     }
22
 
23
 
23
     @Override
24
     @Override
24
-    public void delete(IdentifiableInterface object) {
25
+    public void delete(TypeOfId object) {
25
 
26
 
26
     }
27
     }
27
 
28
 
28
     @Override
29
     @Override
29
-    public void delete(Serializable serializable) {
30
+    public void delete(TypeOfEntity serializable) {
30
 
31
 
31
     }
32
     }
32
 
33
 
33
     @Override
34
     @Override
34
-    public Boolean has(IdentifiableInterface object) {
35
+    public Boolean has(TypeOfEntity object) {
35
         return null;
36
         return null;
36
     }
37
     }
37
 
38
 
38
     @Override
39
     @Override
39
-    public Boolean has(Serializable serializable) {
40
+    public Boolean has(TypeOfId serializable) {
40
         return null;
41
         return null;
41
     }
42
     }
42
 
43
 

+ 5
- 4
src/main/java/com/zipcodewilmington/generic/identifiables/ActionFigure.java Ver fichero

5
 /**
5
 /**
6
  * @author leon on 05/12/2018.
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
     @Override
11
     @Override
11
-    public Serializable getIdentity() {
12
-        return null;
12
+    public Long getIdentity() {
13
+        return id;
13
     }
14
     }
14
 
15
 
15
     public Class getIdentityType() {
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 Ver fichero

5
 /**
5
 /**
6
  * @author leon on 05/12/2018.
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
     @Override
11
     @Override
11
-    public Serializable getIdentity() {
12
-        return null;
12
+    public String getIdentity() {
13
+        return id;
13
     }
14
     }
14
 
15
 
15
     public Class getIdentityType() {
16
     public Class getIdentityType() {
16
-        return null;
17
+        return String.class;
17
     }
18
     }
18
 }
19
 }