Skip to content

Commit

Permalink
Merge pull request #43 from dpolivaev/relationContainerFactory
Browse files Browse the repository at this point in the history
Add factory method
  • Loading branch information
wuan committed Aug 3, 2017
2 parents 941d239 + f5928f9 commit 4a7c60a
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 4a7c60a

Please sign in to comment.