Skip to content

Commit

Permalink
Add factory method
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitry Polivaev committed Aug 2, 2017
1 parent 5c45409 commit f5928f9
Showing 1 changed file with 10 additions and 0 deletions.
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();
}

0 comments on commit f5928f9

Please sign in to comment.