-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dimitry Polivaev
committed
Aug 2, 2017
1 parent
5c45409
commit f5928f9
Showing
1 changed file
with
10 additions
and
0 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
src/main/java/com/mercateo/common/rest/schemagen/link/relation/RelationContainer.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 |
---|---|---|
@@ -1,5 +1,15 @@ | ||
package com.mercateo.common.rest.schemagen.link.relation; | ||
|
||
public interface RelationContainer { | ||
|
||
static public RelationContainer of(String name) { | ||
return new RelationContainer() { | ||
@Override | ||
public Relation getRelation() { | ||
return Relation.of(name); | ||
} | ||
}; | ||
} | ||
|
||
Relation getRelation(); | ||
} |