-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- README contains api
- Loading branch information
Showing
9 changed files
with
146 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
import java.util.Map; | ||
import java.util.UUID; | ||
|
||
import ch.papers.objectstorage.models.UuidObject; | ||
import ch.papers.objectstorage.models.AbstractUuidObject; | ||
|
||
|
||
/** | ||
|
@@ -14,9 +14,9 @@ | |
* [email protected] | ||
*/ | ||
public class UuidObjectMapType implements ParameterizedType { | ||
private Class<? extends UuidObject> wrapped; | ||
private Class<? extends AbstractUuidObject> wrapped; | ||
|
||
public UuidObjectMapType(Class<? extends UuidObject> wrapper) { | ||
public UuidObjectMapType(Class<? extends AbstractUuidObject> wrapper) { | ||
this.wrapped = wrapper; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
package ch.papers.objectstorage.filters; | ||
|
||
import ch.papers.objectstorage.models.UuidObject; | ||
import ch.papers.objectstorage.models.AbstractUuidObject; | ||
|
||
/** | ||
* Created by Alessandro De Carli (@a_d_c_) on 23/11/15. | ||
* Papers.ch | ||
* [email protected] | ||
*/ | ||
public interface Filter<T extends UuidObject> { | ||
public interface Filter<T extends AbstractUuidObject> { | ||
public boolean matches(T object); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/ch/papers/objectstorage/models/AbstractUuidObject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package ch.papers.objectstorage.models; | ||
|
||
import java.util.UUID; | ||
|
||
|
||
/** | ||
* Created by Alessandro De Carli (@a_d_c_) on 21/11/15. | ||
* Papers.ch | ||
* [email protected] | ||
*/ | ||
public abstract class AbstractUuidObject implements UuidObject{ | ||
protected UUID uuid = UUID.randomUUID(); | ||
|
||
public UUID getUuid() { | ||
return uuid; | ||
} | ||
} |
Oops, something went wrong.